Android intent-filter pathPattern
我想制作一个可以检测这样的网址的intent-filter:
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" />