Android的发展:设置程序设置为默认 [英] Android Development: set a program as default

查看:157
本文介绍了Android的发展:设置程序设置为默认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让我的程序加载默认示例中的URL链接?

How do i make my program load as default example for a url link?

感谢您!

PS *去年missunderstanding问题对不起!

PS* sorry for last missunderstanding Question!

推荐答案

我几乎完全肯定的是,用户必须设置它,出于安全原因。例如,如果你有一个广播接收器被监听 intent.foo ,但在其他应用其它接收机这也被监听同样的意图,用户将有一个对话框,让他们选择他们想要的工作意图是什么应用psented $ p $,以及是否将其设置为默认值。

I'm almost entirely certain that the user has to set it, for security reasons. For example, if you have a BroadcastReceiver that is listening for intent.foo, but there are other receivers in other apps that are also listening for the same intent, the user will be presented with a dialog which lets them select what app they want to work on the intent, and whether or not to set it as default.

这篇关于Android的发展:设置程序设置为默认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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