© Ted Hagos 2020
T. HagosLearn Android Studio 4https://doi.org/10.1007/978-1-4842-5937-5_15

15. BroadcastReceivers

Ted Hagos1 
(1)
Manila, National Capital Region, Philippines
 
What we’ll cover:
  • Introduction to BroadcastReceivers

  • Custom and system broadcasts

  • Manifest and Context registered receivers

Android’s application model is unique in many ways, but what makes it stand out is how it lets you build an app using the functionalities of other apps that you didn’t make yourself—I don’t mean just libraries, I mean full apps. In Chapter 8, we learned how to use Intents to activate Activities. In this chapter, we will learn how to send and receive broadcast messages using Intents.

A broadcast is an Intent that is sent either by the Android Runtime or other ...

Get Learn Android Studio 4: Efficient Java-Based Android Apps Development 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.