I have a custom file type/extension that I want to associate my app with.
As far as I know, the data element is made for this purpose, but I can't get it working. http://developer.android.com/guide/topics/manifest/data-element.html According to the docs, and a lot of forum posts, it should work like this:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pdf" />
</intent-filter>
Well, it does not work. What did I do wrong? I simply want to declare my own file type.
For Gmail attachment, you can use:
Add as many mime types as needed. I only need those for my project.