本文介绍了三星设备无法从浏览器的URL方案在Android中打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用URL方案的三星。下面工作正常,非三星设备而不是从浏览器中打开我的应用程序是在清单文件中的条目

 <意向滤光器>
            <作用机器人:名字=android.intent.action.VIEW/>
            <类机器人:名字=android.intent.category.BROWSABLE/>
            <类机器人:名字=android.intent.category.DEFAULT/>
            <数据机器人:计划=HTTP/>
            <数据机器人:主机=*/>
            <数据机器人:pathPattern = />中* \\\\ EPUB。
        &所述; /意图滤光器>


解决方案

不幸的是,这似乎是一个<一个href=\"http://developer.samsung.com/forum/thread/samsung-tab-3-80---opening-the-application-from-browser-does-not-work/202/251278?boardName=General&listLines=15&startId=zzzzz~&curPage=3\"相对=nofollow>与某些三星设备问题。

如果你可以接受的,定制的方案似乎工作。

I want to open my app from browser using URL scheme its working fine non Samsung devices but not in Samsung .below is the entry in manifest file

           <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:scheme="http" />
            <data android:host="*" />
            <data android:pathPattern=".*\\.epub"/>
        </intent-filter>                                              
解决方案

Unfortunately this seems to be a problem with certain Samsung devices.

If acceptable for you, custom schemes seem to work.

这篇关于三星设备无法从浏览器的URL方案在Android中打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 06:10