![]() In android, we can receive broadcasts by registering in two ways. When a new broadcast received, the system will check for specified broadcasts have subscribed or not based on that it will routes the broadcasts to the apps. We can register an app to receive only a few broadcast messages based on our requirements. In android, Broadcast Receiver is implemented as a subclass of BroadcastReceiver and each broadcast is delivered as an Intent object. Generally, we use Intents to deliver broadcast events to other apps and Broadcast Receivers use status bar notifications to let the user know that broadcast event occurs. ![]() The apps can also initiate broadcasts to let other apps know that required data available in a device to use it. ![]() In android, Broadcast Receiver is a component that will allow an android system or other apps to deliver events to the app like sending a low battery message or screen turned off the message to the app.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |