Thursday, 24 December 2015

Android - Broadcast Receivers

Broadcast Receiverssimply respond to broadcast messages from other applications
or from the system itself. These messages are sometime called events or
intents. For example, applications can also initiate broadcasts to let other
applications know that some data has been downloaded to the device and is
available for them to use, so this is broadcast receiver who will intercept
this communication and will initiate appropriate action

There are following two important steps to make
BroadcastReceiver works for the system broadcasted intents −

·Creating
the Broadcast Receiver.

·Registering
Broadcast Receiver

There is one
additional steps in case you are going to implement your custom intents then
you will have to create and broadcast those intents