• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Opening mail attachments with specific extension with own application

aervterrh

Lurker
Hi all,

I am developing an application that has to open certain mail attachment (XML format but with a specific extension, for example .aaa). This is working fine, however my app is also showing up in the "Open using" dialog for other documents: .doc, .pdf, ... But it shouldn't. (Gmail app) In my AndroidManifest:

<intent-filter>
<action android:name="com.google.android.apps.drive.DRIVE_OPEN" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.INSERT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*"/>
<data android:pathPattern=".*aaa" />

</intent-filter>

If I try mimeType text/xml or something like that, the app is no longer showing in the "Open with" dialog. Any help would be greatly appreciated...

Thanks!!

Aerv
 
Back
Top Bottom