Android App无法通过架构打开(默认/ Chrome浏览器)

时间:2016-12-21 22:44:49

标签: java android google-chrome android-studio schema

我已经搜索了谷歌每个地方找到'Android App无法通过架构打开(默认/ Chrome浏览器)'的解决方案。但我找不到合适的解决方案。

在代码集下面,我添加到Android Manifest.xml以将模式与浏览器链接。

        <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="com.qa-soft.team" />
                android:pathPrefix="/"/>
        </intent-filter>

        <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="com.qa-soft.team" />
        </intent-filter>

但是当我通过默认/ Chrome浏览器访问(com.qa-soft.team://OPENPDF-INDEX.pdf)时,它将被重定向到谷歌搜索。 无论如何当我通过firefox浏览器访问时,它工作正常。 (加载应用活动)

这个问题的真正问题是什么?如何克服它?

0 个答案:

没有答案