Android 将所有URL重定向到我的应用程序

Android 将所有URL重定向到我的应用程序,android,google-chrome,Android,Google Chrome,我需要在我的应用程序中打开chrome或任何浏览器中的所有URL。我如何在安卓系统中做到这一点 <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http"

我需要在我的应用程序中打开chrome或任何浏览器中的所有URL。我如何在安卓系统中做到这一点

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="http" />
            <data android:scheme="https" />
            <data android:path="/.*"/>
            <data android:pathPattern="/Android" />

        </intent-filter>

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="http" />
            <data android:scheme="https" />
            <data android:path="/.*"/>
            <data android:pathPattern="/Android" />

        </intent-filter>


目前我正在我的项目中使用上述代码。这会将其他应用程序的所有链接重定向到我的应用程序。但不是来自Chrome。

你想要什么是不可能的。对于浏览器来说,没有必要关注可能对URL感兴趣的任何其他应用程序。特别是,Chrome似乎假设所有的
http
/
https
URL都只是从Internet加载为网页。其他浏览器可能也会有同样的行为。

即使我将android方案称为“http”也不可能吗?@Sweta:同样,如果Web浏览器希望将http URL视为只需自己处理的东西,而不是查看它是否有任何
ACTION\u VIEW
活动,那么欢迎浏览器这样做。
http
URL
用于显示在其他类型的应用程序(如短信客户端)中的链接,这些链接可能会触发浏览器或应用程序的出现。
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="http" />
            <data android:scheme="https" />
            <data android:path="/.*"/>
            <data android:pathPattern="/Android" />

        </intent-filter>