【发布时间】:2015-02-25 10:48:55
【问题描述】:
我正在尝试打开应用程序以获取如下所示的链接 -
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 的情况下工作,但我需要它仅适用于这个以“opener=mail”结尾的站点。
【问题讨论】:
-
android:pathPattern=".*opener=mail" />。那个点的作用是什么? -
@greenapps 我不确定,我看到了一些添加它的示例,但即使没有“。”它不起作用。
标签: android android-manifest intentfilter deep-linking