如何添加我的浏览器在Android上的默认浏览器选择列表? [英] How to add my browser in the default browser selection list in android?

查看:141
本文介绍了如何添加我的浏览器在Android上的默认浏览器选择列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为TextOnly..How应用程序列表中的添加,选择默认浏览器?

I have a app called "TextOnly" ..How to add in the list to select default browser?

推荐答案

指定在android manifest文件,如你的意图:

Specify your intent in the android manifest file such as:

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

确认:

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

在那里。

参考

类似地,如果动作是ACTION_VIEW和数据字段是一个http:URI,接收活动将被要求下载和显示的任何数据的URI指向

Similarly, if the action is ACTION_VIEW and the data field is an http: URI, the receiving activity would be called upon to download and display whatever data the URI refers to.

这篇关于如何添加我的浏览器在Android上的默认浏览器选择列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆