Let’s say that the user has the spotify, youtube, xbmc and glympse app installed.
The spotify-app responds to “spotify:album:123”-intents and the glympse-app to “glympse.com/123”-intents. Both the XBMC-app and YouTube-app respond to “youtube.com/watch?v=123”-intents.
What I want to get is every app that responds to such an intent. I don’t want to give an intent for a specific URL/URI, rather I want to get every app that responds to some kind of URL/URI-intent.
If that still isn’t clear enough, here is some non-working code which kind of shows what I want(except that it is only querying for a URI).
getPackageManager()->queryIntentActivities(new Intent(Intent.Action_VIEW, Uri.parse("http://*")), 0)
That is not directly possible through the Android SDK. Android can tell you activities that can respond to a specific
Intent, but you cannot search through registered<intent-filter>objects to find all of those with a<data>element and anandroid:schemeattribute.