Thursday, 27 November 2014

BroadCast Reciever in Android

* A Broadcast Reciever is another component in Android process,along with activities,content provider and Services.

* It is a component that can respond to a broadcast message sent by a client.

* The message itself is an Android broadcast intent.A broadcast intent ( message ) can invoke more than one reciever.

* A component such as an activity or a service uses the sendBroadcast() method available on the
Context class to send a broadcast event.

* Receiving components of the broadcast intent will need to inherit from a receiver class.

* These receiving components need to be registered in the manifest file through a receiver tag to
indicate that the class is interested in responding to a certain type of broadcast intent.

No comments:

Post a Comment