How to add my app as one of the email attachment viewer?

csgoh

Member
Licensed User
Longtime User
Hi,


I am trying to build an android app which will appear as one of the file viewers when an email attachment is selected.

How could I do that?

Thanks
 

csgoh

Member
Licensed User
Longtime User
I am trying to open an attachment with .DRF extension. This file links to a document in our document management (DM) system. I want to build an app that fetch the doc from DM when .DRF file is clicked on the email client.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You need to add an intent filter to the activity. See this link: Android intent filter for a particular file extension? - Stack Overflow

You should add the intent filter with AddActivityText in the manifest editor.

In your activity you can get the Intent that was sent to it with Activity.GetStartingIntent. The file path should be included in the intent.
 
Upvote 0
Top