How can I perform negative response in android intent filter?

In android manifest, how can I use negative match in android:pathPattern

?

I would like to use pathPattern

one that matches all urls except for a specific hostname, if possible.

+2


a source to share


1 answer


It doesn't seem like it's possible - in fact, it doesn't seem to work like this. I suspect this <intent-filter>

is the wrong tool for what you are trying to do.



Even if you could use android:pathPattern

to specify the hostname (not what android:host

for?), This is more of a globe than a regular expression; according to the docs , it is deliberately understaffed for security reasons.

+2


a source







All Articles