Android的发展:设置程序设置为默认 [英] Android Development: set a program as default
问题描述
如何让我的程序加载默认示例中的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屋!