my app successfully registers a custom type file (.imp) and it's registered as one of the apps that can deal with this type of file. G-mail in fact skips the options and opens my app directly.
I am also catching the intent in my activity with this code:
Sub Activity_Resume
Dim i As Intent
i = Activity.GetStartingIntent
If i.Action.Contains("VIEW") Then
Log(i.GetData)
End If
End Sub
When I click on the file (with my custom extension) in the File Manager app, my app starts and the log(i.GetData) prints the file URI as:
file:///sdcard/impromptu/example%203.imp
However from g-mail the log(i.GetData) does not show a unique file name. This is the log:
content://gmail-ls/branko0721@gmail.com/messages/29/attachments/0.1/BEST/false
I obviously need some other way to access the attached file but so far haven't been able to find any.
Thanks a lot if you can help...