Android意图过滤器路径模式

Android意图过滤器路径模式,android,android-intent,Android,Android Intent,我想制作一个可以检测如下URL的意图过滤器: http://192.168.0.xx/playlist/_definst_/iphone.smil/list.m3u8?token=XXXXXXX 我已经试过了,但是没有成功 <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.

我想制作一个可以检测如下URL的意图过滤器:

http://192.168.0.xx/playlist/_definst_/iphone.smil/list.m3u8?token=XXXXXXX
我已经试过了,但是没有成功

    <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="*"
            android:pathPattern=".*\\*.m3u8.*"
            android:scheme="http" />
    </intent-filter>

我错过了什么?
我需要你的帮助。
这对我有用。希望它也能帮助其他人

 <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\.m3u8" />
        <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\..*\\.m3u8" />
        <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\..*\\..*\\..m3u8" />
        <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\..*\\..*\\..*\\.m3u8" />

试试这个

<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:scheme="http" />
    <data android:host="*" />
    <data android:mimeType="*/*" />
    <data android:pathPattern="*.*\\.m3u8" />
</intent-filter>

或者,用这个

<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:scheme="http" />
    <data android:host="*" />
    <data android:pathPattern=".*\\.m3u8" />
</intent-filter>

这起到了作用:

     <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\.m3u8" />
        <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\..*\\.m3u8" />
        <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\..*\\..*\\..m3u8" />
        <data android:scheme="http" android:host="*"
            android:pathPattern=".*\\..*\\..*\\..*\\.m3u8" />


如果我去掉iphone和smil(iphone.smil)之间的点,它就可以工作了。我认为圆点与此有关。看看这个:[。它显示了如何处理这种情况。在倒数第二个案例中有一个额外的圆点,…m3u88岁,但“这起作用”意味着什么?上面的另一个没有?