我的测试 uri 字符串是
http://test.host.com/path/test.html?key1=val1&key2=val2
我在清单中制作意图过滤器
A. 方案和主机(它有效,但我不想要)
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<data
android:scheme="http"
android:host="test.host.com"
/>
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
B. A & path(pathPrefix, pathPattern) (没用)
<data
android:scheme="http"
android:host="test.host.com"
1. android:path="path/test.html" -> not worked (link to chrome broswer)
2. android:path="path" -> not worked (link to chrome broswer)
3. android:pathPrefix="path" -> not worked (link to chrome broswer)
4. android:pathPattern="user/invite.*" -> same (I do not know pattern)
/>
我只想在 (path/test.html) 时启动我的应用程序,