I want an intent filter to only launch my app if the user clicks the 
Download/Preview button on a file with a particular extension.

Consider an email with the following attachments:

foo.bar
plugh.xyzzy
click.me
billy.bob

I want my app to be registered so a download/preview button is ONLY next to 
the file with the extension .me, so next to the "click.me" file.
I have been successful in making intent filters that will show buttons next 
to ALL the files, but not next to only the one I care about.

Here's a filter that shows buttons next to all of the files, and not just 
in front of "click.me"

<intent-filter>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
  <data
    android:host="*"
    android:scheme="content"
    android:mimeType="*/*"
    android:pathPattern=".*\\.me" />
</intent-filter>

It seems that android:pathPattern is being ignored.
I'm assuming at this point the system does not know or recognize the file 
name of the file being presented as an attachment in the email?
Am I chasing a rabbit that cannot be caught?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to