我用我的意图过滤以下数据尝试:Android的意图过滤数据路径例如
<data android:scheme="http" android:host="an.example.i.p" android:pathPrefix="t" />
为什么没有下面的网址触发呢?
http://an.example.i.p/t/v2.aspx/chase/a.test.auto
我用我的意图过滤以下数据尝试:Android的意图过滤数据路径例如
<data android:scheme="http" android:host="an.example.i.p" android:pathPrefix="t" />
为什么没有下面的网址触发呢?
http://an.example.i.p/t/v2.aspx/chase/a.test.auto
尝试android:pathPrefix="/t"
。 IntentFilter
调用Uri#getPath
并将结果字符串传递给PatternMatcher
和Uri#getPath
,并返回起始/
。
你可以请检查这是否适用于android棒棒糖?我卡在那里...... – Salmaan 2015-04-14 06:17:49