在Windows Mobile设备上检查电池状态 [英] Check Battery Status on Windows Mobile Device

查看:103
本文介绍了在Windows Mobile设备上检查电池状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我一直在尝试从Windows Mobile 6应用程序获取信息,但并没有令我满意.
对于电池状态,我所能得到的只是电池跌落的时间间隔(非常低,低,中,高,非常高).
这不是很有用,因为我想知道确切的百分比(与检查手机本身的电池电量时相同).
这有可能吗?
我一直在使用的代码是:

Hi All

I''ve been trying to get informatin from my windows mobile 6 application, but hasn''t worked to my satisfaction.
For the battery status, all I could get was intervals in which the battery falls (very low, low, medium, high, very high).
This is not very useful, as I want to know the exact percentage (the same as when you check the battery level on the mobile itself).
Is this at all possible?
The code I have been using is:

SystemState.PowerBatteryStrength




and

SystemState.PowerBatteryState



预先感谢您的协助! :thumbsup:



Thanks for the assistance in advance! :thumbsup:

推荐答案

很容易做到.几年来,我在CodeProject.com上发表了一篇文章.在任何搜索引擎中,"Windows Mobile Power Management"似乎也排名第一.您可以在这里找到它:http://www.codeproject.com/KB/windows/WiMoPower1.aspx
It''s easily done. I put an article here on CodeProject.com a few years about that. It also seems to be the #1 search result for "Windows Mobile Power Management" in any search engine. You can find it here: http://www.codeproject.com/KB/windows/WiMoPower1.aspx


这篇关于在Windows Mobile设备上检查电池状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆