Hurda Hurda - 1 year ago 140
Android Question

How to filter only specific URL with intent filter

I want to filter specific URL :*

But this filter is fired on every URl - ehta's wrong with that?

<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

android:scheme="http" />

Answer Source

You want to either use path, pathPrefix, or pathPattern, according to,

In your case, either pathPattern or pathPrefix will work,




However, that does not explain why your filter is matching all URIs. it should be matching none since path does not understand "*". i suspect there is something added / missing from somewhere else in your code.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download