Android Question How to open a file with associated application?

u2005k

Member
Licensed User
Longtime User
I have customer support App, when customer creates new support ticket, he/she can add attachments to support ticket. Attachments can be images, PDF, Word, Excel files. Now when user is looking at support ticket, he/she will see list of attached file (we show icons). I want to open attached file in associated application (if user has it). e.g. For PDF file, I want to open PDF viewer and file will be seen in it.

How do I achieve it in B4A?

Thanks & regards...
U2005K
 

DonManfred

Expert
Licensed User
Longtime User
Search the forum about "open pdf" for example.
You need to create an intent which you call
You need to set the correct mimetype for the intent to open the right application
 
Upvote 0
Top