开发者

Anything needed to allow/give Android Apps access to my Intents?

I'm creating an Android app and am wondering if there is anything special I need to do to allow other apps access to use a particular Intent from my app for use in theirs?

Also, if Intents are inherently allowed to be used by other apps, is there a w开发者_StackOverfloway to stop that from happening?


You can advertise what your app is capable of via an intent filter. See intents and intent filters.

If you don't add an intent filter to an activity, it can only be started via an explicit intent, so the other app would need to know the full name of your class and invoke it directly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜