I'm trying to create a service that run in background in android.. That service should work only when the device is on sleep (Means that screen is off)..
I think that can be done using a service but I don't know how to detect if the phone is awake or not.. Any Idea ? Thanks..