I adhere to the following scenario. I have defined the following semantic link filters in AndroidManifest.xml
Expected behavior, when I found a URL of the format http://โwww.domain.com/a/blabla
or when there is a link in the SMS / eMail format of the domain/xyz
format, the system should initiate my activity.
Case # 1: Works fine
<activity android:name=".MYActivity"> <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:host="xyz" android:scheme="domain" /> </intent-filter> </activity>
Case # 2: Works fine
<activity android:name=".MYActivity"> <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.domain.com" android:pathPrefix="/a" /> </intent-filter> </activity>
Case 3: DOES NOT WORK
<activity android:name=".MYActivity"> <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:host="xyz" android:scheme="domain" /> <data android:scheme="http" android:host="www.domain.com" android:pathPrefix="/a" /> </intent-filter> </activity>
Any suggestions / points / help really appreciated
Blanc source share