BroadcastReceiver is an Android component that responds to system-wide broadcast announcements.
BroadcastReceiver is an Android component that responds to system-wide broadcast announcements.
Many broadcasts originate from the system – for example, a broadcast announcing that the screen has turned off, the battery is low, or a picture was captured.
Applications can also initiate broadcasts – for example, to let other applications know that some data has been downloaded to the device and is available for them to use.
Although broadcast receivers don't display a user interface, they may create a status bar notification to alert the user when a broadcast event occurs. More commonly, though, a broadcast receiver is just a "gateway" to other components and is intended to do a very minimal amount of work. For instance, it might initiate a service to perform some work based on the event.
For more information visit the Android BroadcastReceiver reference or the documentation for the receiver element used in the Android manifest file.