android – 使用intent过滤器和数据匹配复杂模式

我的意图过滤器看起来像这样:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <action android:name="android.intent.action.SENDTO" />
    <category android:name="android.intent.category.DEFAULT"></category>
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="http" android:host="mywebsite" android:pathPattern="/oauth/authorize?.*oauth_verifier=.*" />
</intent-filter>

但这无法匹配.

如果我删除?它之后的所有内容都匹配,但我匹配的网站多次使用该网址,而我唯一感兴趣的是oauth_verifier.

无论如何在/ oauth / authorize之后使意图过滤器与位(查询参数?)匹配

最佳答案

Is there anyway to make an intent filter match the bit (query parameters?) after the /oauth/authorize

不,对不起

点赞