© Peter Späth 2018
Peter SpäthPro Android with Kotlinhttps://doi.org/10.1007/978-1-4842-3820-2_5

5. Broadcasts

Peter Späth1 
(1)
Leipzig, Germany
 

Android broadcasts are messages following the publish-subscribe pattern. They are sent across the Android OS, with the internals hidden by the Android OS, so both publishers and subscribers see only a lean asynchronous interface for sending and receiving messages. Broadcasts can be published by the Android OS itself, by standard apps, and by any other app installed on the system. Likewise, any app can be configured or programmed to receive the broadcast messages they are interested in. Like activities, broadcasts can be explicitly or implicitly routed, which is the responsibility of the broadcast sender ...

Get Pro Android with Kotlin: Developing Modern Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.