I want to make intent-filter which can detect urls like this one
http://x.xxxx.com/x.php?u=http%3A%2F%2Fwww.xxx.com
but i only want detect it when the url has "http%3A%2F%2Fwww.xxx.com"
does intent-filter can do this?
Edit
Here is the code i call the intent to start a url:
String url = "http://example.com/x.php?u=xxxx";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
And i tried this but it's not working:
<data android:scheme="http" android:host="example.com"
android:pathPattern="/x.php?u=xxxx"/>
This also not working:
<data android:scheme="http" android:host="example.com"
android:pathPattern="/x.php?.*"/>
However i tried only this can working:
<data android:scheme="http" android:host="example.com"
android:pathPattern="/x.php"/>
I guess the problem here is that i can't contain the "?" characters in android:pathPattern However i want it can be detected only when the query string u param contain "xxxx" string.
Does it can be solve?