What is the difference between the alarms of type of RTC_WAKEUP
and RTC
?
From the documenatation of the AlarmManager
, it seems that alarms of RTC
will not wake up the device if the device current is asleep, and will not delivered until the next time the device wakes up.
But I found that the alarm of type of RTC
will still wake up the device, so what's going on?
What I did is to change the type of RTC_WAKEUP
to RTC
in the AlamrManagerService.java
, function setRepeating()
, and then set an alarm of 3 minutes from now on, then check the device, you will find that it still could be waken up by the alarm.