Please enable JavaScript.
Coggle requires JavaScript to display documents.
ALARM MANAGER, . - Coggle Diagram
ALARM MANAGER
-
ALARM TYPES
elapsed real time
-
USE-CASES
If you simply need your alarm to fire at a particular interval (for example, every half hour)
-
real time clock" (RTC)
-
-
DRAWBACK
The app may not translate well to other locales, and if the user changes the device's time setting, it could cause unexpected behavior in your app. Using a real time clock alarm type also does not scale well, as discussed above. We recommend that you use an "elapsed real time" alarm if you can.
-
-
WAKEUP VERSION
-
If you don't use the wakeup version of your alarm type, then all the repeating alarms will fire when your device is next awake.
-
INEXACT/EXACT ALARM
INEXACT :star:
-
-
-
setAndAllowWhileIdle()
To perform work while the device is in Doze, create an inexact alarm using setAndAllowWhileIdle(), and start a job from the alarm.
EXACT ALARM
-
SPENDS MORE USER BATTERY
When the system triggers exact alarms that your app sets, the device consumes a great deal of resources, such as battery life
If your app targets Android 12 or higher,
-
-
-
-
-
-
SCHEDULE ALARMS
repeating alarms to schedule operations that take place outside of the lifetime of the application, even if the application is not running or the device is asleep.
-
-
-