5. Broadcasting and Receiving Intents

The Android operating system enables applications to communicate with one another in a variety of ways. One way that information can be communicated across process or application boundaries is by using the broadcast event system built into the platform through the use of Intent objects. When an application has something it wants to communicate, it can broadcast that information to the system at large. Applications that are interested in that sort of event can listen for and react to that broadcast by becoming broadcast receivers. Although we develop numerous examples of broadcasts in the other chapters of this book, we felt it was worthwhile to cover some of the basics of broadcasting on the Android platform ...

Get Advanced Android™ Application Development, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.