Question

What I want is to give user the ability to run my application instead of default YouTube one when any application requests YouTube search. I've tried to play with intent-filter, but with no success. Intent looks like this (from DDMS): Starting: Intent { act=android.intent.action.SEARCH flg=0x10000000 pkg=com.google.android.youtube cmp=com.google.android.youtube/.app.froyo.phone.ResultsActivity (has extras) } from pid 4766. As you see, it contains no data field, so I can't easily add <data> element to my intent filter, as I do with URL interception.

Any help appreciated.

Was it helpful?

Solution

For the Intent that you have listed, it is impossible for you to "intercept" it, as it specifically identifies the component (cmp=com.google.android.youtube/.app.froyo.phone.ResultsActivity).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top