Home > DeveloperSection > Interviews > Describe three common use cases for using an Intent.

Posted on    August-02-2015 11:43 PM

 Android Android  Android Intent 
Ratings:
 1 Answer(s)
  2994  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    August-02-2015 11:43 PM

Common use cases for using an Intent include:

1. To start an activity: You can start a new instance of an Activity by passing an Intent to startActivity() method.
2. To start a service: You can start a service to perform a one-time operation (such as download a file) by                  passing an Intent to startService().
3. To deliver a broadcast: You can deliver a broadcast to other apps by passing an Intent to sendBroadcast(),           sendOrderedBroadcast(), or sendStickyBroadcast().

Don't want to miss updates? Please click the below button!

Follow MindStick