Using pathPrefix
suggest changeAndroidManifest.xml:
<activity android:name="com.example.MainActivity" >
<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="www.example.com"
android:path="/item" />
</intent-filter>
</activity>
This will launch your MainActivity when the user clicks any link starting with http://www.example.com/item
, such as:
https://www.example.com/item
http://www.example.com/item/1234
https://www.example.com/item/xyz/details
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents