A program can run in the background. Hardware.ShowTodayScreen can be used to move it to the background.
However if your device is not a phone device and it turns off after a period of time, the program will stop as well.
A program can run in the background. Hardware.ShowTodayScreen can be used to move it to the background.
However if your device is not a phone device and it turns off after a period of time, the program will stop as well.
I was intended to create a program to display a counterdown during the idle time before the target go to standby mode. However, I dont want to interrupt the target idling time, because I have no idea whether if the display is refreshing every seconds, will it cause the target to kept on reseting the idle time or not. Hence, I wish to have a counter that maybe run at the background without interrupting the system power cycling time.
I was intended to create a program to display a counterdown during the idle time before the target go to standby mode. However, I dont want to interrupt the target idling time, because I have no idea whether if the display is refreshing every seconds, will it cause the target to kept on reseting the idle time or not. Hence, I wish to have a counter that maybe run at the background without interrupting the system power cycling time.
Ah, I'm sure that you are right that if you are displaying a counter the device will consider it is not idle and thus not shutdown. Rather a "Catch-22" situation!
Not sure if the countdown was happening in background whether that would also reset the idle count. I suspect it would. But in any case you would not be able to see, since on PDAs only the foreground "window" is visible.
If your program spoke the countdown through the speaker the invisibility of the background state would not matter, but I'm sure that would not be an "idle" state either.
... However, I dont want to interrupt the target idling time, because I have no idea whether if the display is refreshing every seconds, will it cause the target to kept on reseting the idle time or not.
Forgetting this thread, today I set my WM5.0 device to switch off after five minutes idle. I found that it did this even while running my Music Player program. This program updates the screen (to show progress through the sound file while playing) on a timer.
So, at least on my device, "idle" means not interacting by pressing buttons, not that no screen update is happening.