Android Broadcast reciever
In Android, a broadcast 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 run time once this event happens.
For example, applications can register for the
ACTION_POWER_CONNECTED
system event which is fired once the Android system has completed the boot process.
A receiver can be registered via the AndroidManifest.xml file.
Alternatively to this static registration, you can also register a receiver dynamically via the
Context.registerReceiver()
method.
The implementing class for a receiver extends the
BroadcastReceiver
class.
If the event for which the broadcast receiver has registered happens, the
onReceive()
method of the receiver is called by the Android system.
Comments
Post a Comment