Why Broadcast Receiver Is Used in Android?
Contents Broadcast Receiver Is an Android Component Which Allows You to Send or Receive Android System or Application Events. … for Example, Applications Can...
Contents
Broadcast receiver is an Android component which allows you to send or receive Android system or application events. … For example, applications can register for various system events like boot complete or battery low, and Android system sends broadcast when specific event occur.
Why we use broadcast receiver in android?
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.
Which are the broadcast receiver are available in Android?
Broadcast-Receiver
| Sr.No | Event Constant & Description |
|---|---|
| 4 | android.intent.action.BOOT_COMPLETED This is broadcast once, after the system has finished booting. |
| 5 | android.intent.action.BUG_REPORT Show activity for reporting a bug. |
| 6 | android.intent.action.CALL Perform a call to someone specified by the data. |