On Dec 24, 11:25 am, Tor <tor.hough...@gmail.com> wrote:
> Hello,
>
> Is it possible to act on specific data in an intent? (Say, if a URL
> matches a regular expression.)
>
> I am able to trigger my application when someone clicks on a URL, but
> I don't want the app to be in
> the browseable list unless a URL matches a regular expression, say.
>
> Any pointers?

Intent matching is described here:

http://developer.android.com/reference/android/content/IntentFilter.html

I think this one from my manifest only matches paths ending
in .prf.xml.

 <intent-filter>
                                    <action
android:name="android.intent.action.VIEW"/>
                                    <category
android:name="android.intent.category.DEFAULT" />
                                    <category
android:name="android.intent.category.BROWSABLE" />
                                    <data
                                        android:scheme="http"
                                        android:host="*"
                                                android:pathPattern=".*
\\.prf\\.xml"
                                    />
</intent-filter>

Pent

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

Reply via email to