This question has been asked more then 10 times, for example :
- Launch custom android application from android browser
- Android Respond To URL in Intent
- How to implement my very own URI scheme on Android
I tried more then 10 links and tutorials and it seems like i'm missing something.
I do the following :
- create a new android project you an empty action.
I then create the following Android manifest :
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.my_test" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="18" android:targetSdkVersion="18" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/app_name" > <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.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" android:host="planb.site11.com"/> </intent-filter> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="my.special.scheme" android:host="path" /> </intent-filter> </activity> </application>
Then i enter a small webpage i created, hoping on of the links will work (using google chrome on nexus 5) here is the page (his source is very simple) http://planb.site11.com/
and click on the links, but nothing opens my app :(
What am i missing ? How can i see in my android which apps are signed for which intents ?
Thanks.