O'Reilly logo

Professional Android, 4th Edition by Ian Lake, Reto Meier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6Intents and Broadcast Receivers

USING INTENTS AND BROADCAST RECEIVERS

Intents are a message-passing mechanism you can use within your application, between applications, and between the system and your application. Intents are used to do the following:

  • Explicitly start a particular Service, Broadcast Receiver, Activity, or sub-Activity using its class name
  • Start an Activity, sub-Activity, or Service to perform an action with (or on) a particular piece of data
  • Return information from a sub-Activity
  • Broadcast that an event has occurred

Intents are a fundamental part of the Android OS, they’re also quite unique to Android, and as such can be a confusing concept to master.

Intents can be used to send information among any application components installed on an Android device, no matter which application they’re a part ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required