Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 点击链接会弹出我的应用程序_Android_Android Intent_Intentfilter - Fatal编程技术网

Android 点击链接会弹出我的应用程序

Android 点击链接会弹出我的应用程序,android,android-intent,intentfilter,Android,Android Intent,Intentfilter,现在,我正在使用android:ssp来过滤url的路径,这可以从API 19获得 如何过滤API 10以后的url路径 scheme://host/path/token 这是我的url模式 编辑: 我尝试过android:path=“/path/*”但它不起作用您只需在使用对Uri进行筛选的相同活动上使用意图筛选即可。您可以在同一活动的ssp筛选器之后添加此筛选器 我认为正确的意图过滤器如下所示: <intent-filter> <data android:sch

现在,我正在使用android:ssp来过滤url的路径,这可以从API 19获得

如何过滤API 10以后的url路径

scheme://host/path/token 
这是我的url模式

编辑:


我尝试过android:path=“/path/*”但它不起作用

您只需在使用对Uri进行筛选的相同活动上使用意图筛选即可。您可以在同一活动的ssp筛选器之后添加此筛选器

我认为正确的意图过滤器如下所示:

<intent-filter>
    <data android:scheme="scheme" android:host="host" android:path="path/*" />
</intent-filter>
因此,这允许您在令牌路径中使用星号。


<intent-filter>
<data android:scheme="scheme" android:host="host" /></intent-filter>
我尝试实现的方式可能会导致错误


最后决定不使用路径,使用主机进行过滤并使用活动中的数据进行处理。

我已经尝试过了,关键是,我必须为我的url提供一个部分路径,我的url中的令牌总是会更改'scheme://host/path/token “是的,你完全正确,但是,
android:path=“/path/*”
不起作用,我应该在问题本身中提到,我的错。我会改正的
<intent-filter>
<data android:scheme="scheme" android:host="host" /></intent-filter>