Android:在意向过滤器中匹配主机模式

Android:在意向过滤器中匹配主机模式,android,android-intent,intentfilter,Android,Android Intent,Intentfilter,我有以下网址: http://api.modarchive.org/downloads.php?moduleid=50479#ngs_cvrg.xm 我想做的是匹配主机名中包含“mod”的所有.php URL。安卓:主机只允许1个通配符,我需要2个 我尝试修改android:pathPattern,如下所示: <data android:pathPattern=".*mod.*\\.php"/> …但Android pathPattern语法不同 我想做的似乎是不可能的: "Th

我有以下网址:

http://api.modarchive.org/downloads.php?moduleid=50479#ngs_cvrg.xm
我想做的是匹配主机名中包含“mod”的所有.php URL。安卓:主机只允许1个通配符,我需要2个

我尝试修改android:pathPattern,如下所示:

<data android:pathPattern=".*mod.*\\.php"/>
…但Android pathPattern语法不同

我想做的似乎是不可能的:

"The URL consists of four parts: it has each of the four properties scheme, host, port, path corresponds to the URI part.

       For example: content://com.wjr.example1:121/files

       Part scheme: content
       Part host: com.wjr.example1
       Part port: 121
       Part path: files 
"

所以。。如何匹配任何包含“mod”的主机(例如mods、modules、modarchive、modgovernment等)?

您不能这样做。这可能会阻止任何应用程序注册URL的“批量”拦截器,并让可能看到一些奇怪的应用程序要求处理各种URL的用户感到困惑。您必须按特定的名称注册每个文件。

是的,您无法匹配URL参数,这令人沮丧。如果我可以在PHP URL中为“?”后面的内容添加一个模式,那么我的所有问题都会得到解决。希望这一个网站是我必须迎合的例外:)
"The URL consists of four parts: it has each of the four properties scheme, host, port, path corresponds to the URI part.

       For example: content://com.wjr.example1:121/files

       Part scheme: content
       Part host: com.wjr.example1
       Part port: 121
       Part path: files 
"