I'm looking for Android specific implementation detail of ScheduledExecutorService.schedule when device is in deep sleep. I understand that schedule will not guarantee exact timing but simply execute "after" the delay. What I am not clear on is how sleep (and deep sleep?) is accounted in the timing. To be specific scenario:
Schedule a task an hour later 5mins in, the phone goes to sleep for 30mins When do I expect the task to get scheduled?
Also if the phone wake up long after the scheduled time, is the task then scheduled for execution immediately?