Timer stops when device switches into suspend-mode!!??

BehindA

Member
Licensed User
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???

:sign0085:
 

BehindA

Member
Licensed User
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!

so what can i do??
 

BehindA

Member
Licensed User
but is there no method like runfunctionattime?
run appattime is not an optimum for my alarm clock program
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…