Describe three common use cases for using an Intent.

Asked 10-Jan-2018
Viewed 1274 times

0

Describe three common use cases for using an Intent.


1 Answer


1

the three common use cases to use the intent are -

  1. using for activity - this can be triggered by calling startActivity() method which invokes the activity we want to move in.
  2. using for service - this can be used to trigger a service by using intent. to use this you need to call startService() method.
  3. using for broadcasting- Intents can be used to broadcast message for example by using sendBroadcast() or sendStickyBroadcast().