I have been struggling with this for days now.
I am trying to register my activity via intent filter to open a specific custom file type with gmail.
The problem is no matter what I try, either I do not get the option to open the file or any attachment of any file type (including mine) is given the option to open with my application.
I believe the problem is that the URI supplied by gmail doesn't have any file details contained inside it.
There are plenty of people who have asked this same question however the solution to all of them never limit the intent filter to just the custom file type.
The current intent filter in my Android Manifest is the following...
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.abc"
android:scheme="content" />
</intent-filter>
Just to reiterate, this intent filter adds the option to open any attachment from gmail with my application.
Any help would be much appreciated