I'm using an Activity with an intent filter similar to the one described here to be able to intercept clicks in the browser and give the user the option to open the my app instead. Here's the code from my AndroidManifest.xml:
<activity android:name="com.scompt.ScomptIntentFilter"> <intent-filter> <data android:scheme="http" android:host="www.scompt.com" /> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> </intent-filter> </activity> This isn't working if I enter http://www.scompt.com into the browser. The page is loaded, just like normal.
If I enter either of the following commands on the command line, then I'm given the standard chooser between my app and the browser, as I would expect.
adb -d shell am start -d http://www.scompt.com -a android.intent.action.VIEW adb -d shell am start -d http://www.scompt.com Is there any other place I should look to get this to work? I've verified what I'm doing with the open-source hubroid and I seem to be doing the same thing.
adbcommands, but not when I click links matching the URL defined in theintent.