简体   繁体   English

Android开发:将程序设置为默认

[英]Android Development: set a program as default

How do i make my program load as default example for a url link? 如何使我的程序作为URL链接的默认示例加载?

Thank you! 谢谢!

PS* sorry for last missunderstanding Question! PS *很抱歉最后一次误会问题!

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. 举例来说,如果你有一个BroadcastReceiver被监听intent.foo ,但在其他应用程序的其它接收器,它们也监听同样的目的,用户将看到一个对话框,让他们选择他们想要什么应用呈现处理意图,以及是否将其设置为默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM