Running an app / service in deep sleep?

I plan to write an application that will do the job every 5 minutes in the background. What happens if the phone goes to sleep?

I heard that in deep sleep the CPU shuts down, so the applications stop executing, and someone also said that the processor does not shut down, but it works at a frequency below 100 MHz? Which one is true?

Also, if applications do not work in deep sleep, how do we receive calls and SMS in real time?

Im brand new to Android and just installed sdk.

+5
source share
1 answer

I really do not know what deep sleep is, but you can achieve this by doing a service, and you have a timer that will fire every 5 minutes (300,000 milliseconds).

0
source

All Articles