![]() There are two ways to register an Android broadcast receiver. ![]() An instance of broadcast originating from the system is ‘low battery notification’. The broadcast originates from the system as well as applications. You will be notified about the events after registering. This means is that you have to be careful while scheduling an alarm task that executes more frequently.Īndroid broadcast receiver is also a component where you can register for system or application events. The alarm can wake your device, but this consumes more battery. Once the alarm is scheduled, it will invoke even when your application is not running or even your device is in sleep. This can run outside the lifetime of your application. ![]() This allows your application to execute a certain piece of code on a given scheduled time. AlarmManager is a class in Android which is used as an access device alarm service. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |