DESCRIBE THREE COMMON USE CASES FOR USING AN INTENT.

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 5021  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Describe three common use cases for using an Intent.

    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().

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!