Pocket PC Power Management Series 2: Problem Domain
====>SiteMap of this Blog<===
Pocket PC Power Management Series 2: Problem Domain
Most UI-intensive applications require the user to interact via a screen UI using stylus or keyboard. For such applications, it does not make sense to run it when the device is suspended, or “in sleep mode”. What a developer needs to do is to avoid burning any CPU cycles when the device is sleeping or, to be more exactly, when the user is not interacting with the application (for example, its main window is not the foreground window.) Mike Calligaro from Microsoft Windows Mobile Team has two excellent articles on this topic with good examples. I strongly recommend readers to go over those two posts:
The problem we are trying to solve here belongs to another domain: What if the application needs to run continuously, or at least, needs to run periodically independent of the user’s action? It runs if the user puts the device unattended, it runs if the user sometimes powers the device on and turns it off quickly, and it runs when the device is put into a charger (of course).- If the application needs to run unattended, turn off the screen display by all means.
- If the application does not need to run continuously, make it run periodically.
- If the application does not need to run periodically, but needs to catch user’s stylus action as quickly as possible once the device is switched on, listen to a Wakeup event.
Category: [Power Management]