Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用URL打开我的应用程序-Android_Android - Fatal编程技术网

使用URL打开我的应用程序-Android

使用URL打开我的应用程序-Android,android,Android,我正在开发一个android应用程序。。。。当有人在浏览器中键入url时,我想打开我的应用程序。。我能够获得“使用..完成操作”,并且我的应用程序也只有在我单击指向web链接的书签时才会显示。。但是,如果我在浏览器中键入URL,它只会加载网站。。但我想把它重定向到我的应用程序 这是我在清单文件中的代码 <intent-filter> <data android:scheme="http" android:host="SOME_URL.SOMETHING"/>

我正在开发一个android应用程序。。。。当有人在浏览器中键入url时,我想打开我的应用程序。。我能够获得“使用..完成操作”,并且我的应用程序也只有在我单击指向web链接的书签时才会显示。。但是,如果我在浏览器中键入URL,它只会加载网站。。但我想把它重定向到我的应用程序

这是我在清单文件中的代码

<intent-filter>
    <data android:scheme="http" android:host="SOME_URL.SOMETHING"/>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

*SOME_URL.SOMETHING是要加载的网站的名称


提前感谢:)

哪个浏览器?Chrome不尊重意向过滤器。股票Android浏览器。@iamPranavSethi:你可以从这里得到一些帮助