Hi,
i'm working on an alarm clock...
How can i prevent my device from switching into suspend-mode??
I use a Timer to check if the Alarm-Time is already reached. But all Timers stop when the device is in suspend mode.
When i use the gpsdriver and add gps.open all do not stop running.
Is it possible to keep the timers running without opening the gps???
I know this function,
but i don't want to prevent the device from suspending. I want the programm to run in the background and start an alarm at a certain time!
No. You will have to run another application.
Also note that not all devices fully support these function. Some will be partially waken with the screen turned off.