Skip to content Skip to sidebar Skip to footer

How Do I Ensure That The Email App Will Use My App To Open A File?

I'm currently building an app that allows you to load files from emails and export created ones using email. The extension is .lq. I am currently using this intent filter however I

Solution 1:

You can use the Intent Intercept application to analyse the Intent sent by your mail app and know what intent filter you need to create.

From the gmail app, i get the following intent :

Action : android.intent.action.VIEW

Data : content://gmail-ls/myemail@gmail.com/messages/471/attachements/0.1/BEST/false

URI : content://gmail-ls/myemail@gmail.com/messages/471/attachements/0.1/BEST/false

Type : image/png

So the problem is that your .lq is not a standard extension, and you can't rely on the file name to end with .lq either, as it uses an internal name without extension.

You could use an intent filter to catch content://* URIs.

Solution 2:

I also had this problem. Try to completely remove mimetype attribute.

Post a Comment for "How Do I Ensure That The Email App Will Use My App To Open A File?"