仅过滤特定的URL我要过滤特定网址:http://gaapa.cz/mobile/ *如何使用意图过滤
但这种过滤器被触发每个URL - ehta的错呢?
<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="gaapa.cz"
android:path="/mobile/.*"
android:scheme="http" />
</intent-filter>
我的意图过滤器之一是丢失主机,所以路径被忽略 – Hurda 2012-03-28 07:13:37
如果我想要为以下url进行过滤,会发生什么情况: http://gaapa.cz/#/aaa 我试图将pathPrefix或pathPattern更改为“/#/ *”或“#/”,它不起作用 – gaara87 2014-07-16 11:56:24
散列是一个保留字符。如果你想在URL中使用它,你需要对它进行编码(%23)。 – 2014-07-17 00:37:11