Broadcast Receivers

Learn about broadcast receivers in Android apps.

The Android OS can disseminate messages to apps and vice versa. Apps can also send messages to each other. These messages are broadcast when some already registered events occur. For instance, Android sends broadcast messages when the battery charging starts or the system boots up. Apps can broadcast custom messages, such as notifications of completed downloads, to notify other apps.

The job of Android broadcast receivers is to broadcast messages. They’re components of Android apps that listen to the events or intents across the OS. Let’s explore broadcast receivers.

Steps

The following diagram shows the steps to implement broadcast receivers.

Get hands-on with 1400+ tech skills courses.