Android implicit intents VS explicit intents

前端 未结 9 759
攒了一身酷
攒了一身酷 2020-12-04 16:30

Working with android I realized that implicit intents are good choice in most of cases due to their\'s flexibility. But what\'s about explicit intents? What are benefits of

相关标签:
9条回答
  • 2020-12-04 17:00
    1. Implicit intent - When we want to call the system components through intent to perform a particular task and we don't really know the name of the components to be used, the android system will show the desired list of applications to perform the task.
    2. Explicit intent - When we want to call the another activity with the full qualified name of the activity and of course we know the name of the activity.
    0 讨论(0)
  • 2020-12-04 17:04

    You typically use explicit intents for starting activities within your own application. At that point you know exactly which activity you want to start, so there is no reason to go through the extra work of setting up the implicit intents.

    0 讨论(0)
  • 2020-12-04 17:04

    1) Explicit Intent: component name developer know so, name specified in Intent.

    2) Implicit Intent: Not specified a component in Intent.

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