I have made custom scheme for my app by adding this to my activity in the android manifest:
<activity android:name=".TabHostActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.action.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="myscheme" />
</intent-filter>
</activity>
When i write "myscheme://" i the android browser it opens my app (on some devices). The problem is that this is not working on the Samsung galaxy s and Xperia play. It only searches for myscheme:// on google.
Does anyone know whats wrong here?
Any help will be appreciated :)
adb -d shell am start -d myscheme://something -a android.intent.action.VIEW
to ensure that the intent is being handled properly on the device when you aren't using the browser. – VassalLAUNCHER
category from the intent-filter which specifies your custom scheme and try again? I have used a custom scheme before and the only difference in the declaration is this one. Also the documents dictate that all the categories must be matched during the Intent resolution. – Germanous