Tip

Broadcast receiver in Android

Broadcast Receivers simply 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 two ways to register Android broadcastreceiver.One is static way in which the broadcast receiver is registered in an android application via AndroidManifest.xml file.Another way of registering the broadcast receiver is dynamic, which is done using Context.registerReceiver( ) method. Dynamically registered broadcast receivers can be unregistered using Context.unregisterReceiver( ) method.

Post was last edited on November 17, 2015 5:19 AM PST

Discussion is locked
Follow
Reply to: Broadcast receiver in Android
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Broadcast receiver in Android
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Comments

CNET Forums