我正在尝试为看起来像这样的链接打开应用程序 -
http://www.somesite.com/abcd.html?defg&opener=mail
我尝试过(不起作用):
<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="www.somesite.com"
android:scheme="http"
android:pathPattern=".*opener=mail" />
</intent-filter>
为了测试目的,它可以在没有为包含该主机的任何网站添加pathPattern的情况下工作,但是我需要它只适用于这个具有&#34; opener = mail&#34;结束。
答案 0 :(得分:0)
我发现问题,Android无法查看参数或查询字符串,因为它已在此处得到解答 - Match HTTP parameters in URL with Android Intent Filters