我正在尝试使用意图过滤器来拦截格式为 https://qx.process.com?f=anyValue的 QR 码上的 URL 也就是说,我只想在指定的 URL 为 'f= 时拦截它' 指定参数。我已经尝试过这个,但它不起作用:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:scheme="https" android:host="qx.process.com"
android:pathPrefix="\\?f=*">
</data>
</intent-filter>
Run Code Online (Sandbox Code Playgroud)