How do you get the current battery level in .NET CF 3.5?

后端 未结 3 1749
说谎
说谎 2020-12-17 06:49

How - or what\'s the best way - to retrieve the device\'s current battery level in .NET CF 3.5 on Windows Mobile 5 and 6?

3条回答
  •  时光说笑
    2020-12-17 07:31

    To add to CJ's response you can find a code example of how to get detailed battery information from http://www.codeproject.com/kb/mobile/Wimopower1.aspx . This information includes the batter's power level, temperature, whether it is charging or draining, and the amount of current being drawn.

    Example Output http://j2i.net/resized-image.ashx/__size/800x0/__key/CommunityServer.Blogs.Components.WeblogFiles/home/powerMeter.png

提交回复
热议问题