意图过滤器响应Android中的所有URL?

gos*_*ide 2 url android intentfilter android-intent

我想制作一个涉及响应设备上所有 URL 的应用程序。文档提到了如何处理如下特定方案 -

<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="www.youtube.com" android:scheme="http" />
</intent-filter>
Run Code Online (Sandbox Code Playgroud)

但是我如何定义一个意图过滤器来处理不仅属于特定域或主机的任何 URL?是否可以?

J.D*_*.D. 5

定义架构,如:

<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:scheme="https"/>
    <data android:scheme="about"/>
    <data android:scheme="javascript"/>
</intent-filter>
Run Code Online (Sandbox Code Playgroud)