B BehindA Member Licensed User Sep 10, 2009 #1 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:
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:
klaus Expert Licensed User Longtime User Sep 10, 2009 #2 In the Hardware library you have the KeepAlive function. Hardware Best regards.
B BehindA Member Licensed User Sep 10, 2009 #3 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??
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??
Z Zenerdiode Active Member Licensed User Sep 10, 2009 #4 BehindA]I know this function said: How can i prevent my device from switching into suspend-mode?? Click to expand... You still use the Hardware library; but you use RunAppAtTime.
BehindA]I know this function said: How can i prevent my device from switching into suspend-mode?? Click to expand... You still use the Hardware library; but you use RunAppAtTime.
B BehindA Member Licensed User Sep 10, 2009 #5 but is there no method like runfunctionattime? run appattime is not an optimum for my alarm clock program
but is there no method like runfunctionattime? run appattime is not an optimum for my alarm clock program
Erel B4X founder Staff member Licensed User Longtime User Sep 11, 2009 #6 but is there no method like runfunctionattime? Click to expand... 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.
but is there no method like runfunctionattime? Click to expand... 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.