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:
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:
However from g-mail the log(i.GetData) does not show a unique file name. This is the log:
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...
I am also catching the intent in my activity with this code:
B4X:
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:
B4X:
file:///sdcard/impromptu/example%203.imp
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...