Android BroadcastReceiver is a dormant component of android that listens to system-wide broadcast events or intents. When any of these events occur it brings the application into action by either creating a status bar notification or performing a task.
What is a BroadcastReceiver in Android?
Definition. A broadcast receiver (receiver) is an Android component which allows you to register for system or application events. All registered receivers for an event are notified by the Android runtime once this event happens.
What is the life cycle of BroadcastReceiver in Android?
When a broadcast message arrives for the receiver, Android calls its onReceive() method and passes it the Intent object containing the message.