Trying to figure out the AlarmManager and sleep mode. And it turned out that I have little idea what this sleep mode is. I created two alarms: one with type ELAPSED_REALTIME and type ELAPSED_REALTIME_WAKEUP .
manager.set(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime()+60000*5, pendingIntent); manager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime()+60000*5, pendingIntent); pendingIntent - just starts a service that writes to LogCat . Of course, I ran them separately and did not see the difference in them - both teams led to the same actions. Tell me what is the difference between these modes?