What is the different between Explicit and implicit activity call in android?

后端 未结 7 1312
感动是毒
感动是毒 2020-12-01 03:11

What is the difference between explicit and implicit activity call in android? If you explain the answer with a simple example will be good.

相关标签:
7条回答
  • 2020-12-01 03:40

    See Intent Resolution here

    http://developer.android.com/guide/topics/intents/intents-filters.html

    Explicit intents (activities) refer to a specific class, and in general, are only available to your packages. Implicit intents refer to intent filters where apps publicly announce that they can handle certain types of data or can provide specific services, e.g. send an email. With implicit intents, the users chooses which activity (typically a package) to use to handle the intent or if a default handler is set, it is launched.

    0 讨论(0)
提交回复
热议问题