You Are Here:

Community: Wiki

 

Talk:Monitoring battery status with CTelephony

From Forum Nokia Wiki

This article contains the useful example, especially for server applications. With the help of the class CBatteryCheck you could monitor state of the battery - it is important information in different cases. Also this class allows to detect the connect of the charger - as a reaction to this fact, you could for example start or stop your own application.

I have tested this class on my Nokia 5800. It works fine. Anyway, it is necessary clearly understand how to work with active objects and how to use observers.

FireSwarog, 09.09.2009

This article have a nice code snippet that can directly be used in any GUI / Non-UI applications by just copying to .h and .cpp files and adding to project. This article need to be re-formatted with headers. But that does not reduce the importance or usability of this article. --Skumar rao 17:56, 10 September 2009 (UTC)



Knowing battery status is important for some application, for example background running exes. Article shows how to get battery status and charge level using CTelephony::GetBatteryInfo() API. The class CBatteryCheck implementation in this article is useful for beginners who feel hard to use active objects. This code example is useful to get battery's status and charge level in 3rd edition or 5th edition devices, as 2nd edition (except FP3)does not support CTelephony API.

--kamlesh sangani 04:12, 28 September 2009 (UTC)


 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia