PC Review


Reply
Thread Tools Rate Thread

Battery Life Question

 
 
Yosh
Guest
Posts: n/a
 
      23rd May 2005
Is there a book or website that offer tips on preserving battery life in application design/programming in the compact framework?

Thanks,

Yosh

 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      23rd May 2005
One key point is to avoid over-using the processor. For example it's bad
practice to have code that runs in a loop polling for changes, much better
if possible to be able to block your thread on a wait handle so that it does
not consume unnecessary processor cycles. Another example is to avoid
running code when your app is in the background. For example if you do a lot
of custom drawing make sure your drawing code stops if your app isn't
visible otherwise you are wasting processor cycles on something the user
can't see.
You should also respect the users power settings, don't force the backlight
to stay on longer than is necessary (although it is possible to do this e.g.
if you wanted to show a video etc)
Other power considerations are more general to the device itself, if you are
running an enterprise app which is designed to be the only application on
the system then you may be in a position to control these, but if your app
runs alongside others on the device you should enable/disable hardware which
other software may need. For example the Backlight, Wifi, Bluetooth and the
phone hardware could be disabled if not required for a length of time.
Finally though not directly a battery preserving tip, but related to power
management, you should make sure your application behaves well if the device
is suspended and that it resumes correctly afterwards. This may be an issue
if you have file handles and sockets open.

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

"Yosh" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
Is there a book or website that offer tips on preserving battery life in
application design/programming in the compact framework?

Thanks,

Yosh


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
battery life Alimcanena Windows Vista Hardware 8 10th Jun 2008 09:56 PM
Battery Life MonicaAH Windows Vista Performance 1 30th Apr 2008 11:31 AM
Battery Life =?Utf-8?B?U3V6aWU=?= Windows XP Help 6 26th Jan 2006 09:12 AM
Battery Life =?Utf-8?B?TWFyYw==?= Windows XP Hardware 4 28th Oct 2004 12:02 AM
Battery Life John Microsoft Windows 2000 Hardware 2 2nd Jan 2004 12:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 PM.