Android电池信息获得问题
2013-06-20 16:39
316 查看
之前有写过一笔记,但后面发现是错误的,感谢之前帮我指出错误的博友!
设置应用的:PowerUsageSummary.java文件,会判断:if (mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_FULL) < 10)即亮屏时的功耗。这边主要通过:power_profile.xml 进行配置,默认配置是一个很小的值,如0.1mA,而实际配置正常后,如屏亮度为:300mA,此功能即可正常。更详细的内容,请查看:power_profile.xml
的注释说明。
<!-- Most values are the incremental current used by a feature,
in mA (measured at nominal voltage).
The default values are deliberately incorrect dummy values.
OEM's must measure and provide actual values before
shipping a device.
Example real-world values are given in comments, but they
are totally dependent on the platform and can vary
significantly, so should be measured on the shipping platform
with a power meter. -->
<item name="none">0</item>
<item name="screen.on">0.1</item> <!-- ~200mA -->
设置应用的:PowerUsageSummary.java文件,会判断:if (mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_FULL) < 10)即亮屏时的功耗。这边主要通过:power_profile.xml 进行配置,默认配置是一个很小的值,如0.1mA,而实际配置正常后,如屏亮度为:300mA,此功能即可正常。更详细的内容,请查看:power_profile.xml
的注释说明。
<!-- Most values are the incremental current used by a feature,
in mA (measured at nominal voltage).
The default values are deliberately incorrect dummy values.
OEM's must measure and provide actual values before
shipping a device.
Example real-world values are given in comments, but they
are totally dependent on the platform and can vary
significantly, so should be measured on the shipping platform
with a power meter. -->
<item name="none">0</item>
<item name="screen.on">0.1</item> <!-- ~200mA -->
相关文章推荐
- Android中读取磁盘信息和权限问题
- Android 获得联系人信息
- Android软键盘调用及隐藏,以及获得点击软键盘输入的字母信息
- Android 怎样获得手机信息(四)
- 如何修改android手机电池容量显示信息
- Android获得全局进程信息以及进程使用的内存情况
- Android中电池信息(Battery information)的取得
- Android ListView的getBottom获得值问题
- android-如何获得当前正在运行的activity的相关信息
- 解决 {"ret":100030,"msg":"this api without user authorization"} android QQ第三发登录成功后获取用户信息失败的问题
- Android中获得应用的权限信息
- Android LayoutInflater的到View后丢失LayoutParam信息的问题
- android真机调试问题,看不到logcat信息
- Android 4.0 4.2 不能显示电池使用信息
- Android中读取短信信息,短信监听的各种问题,实现监听短信的功能
- Android(java)学习笔记249:ContentProvider使用之获得系统联系人信息01
- android 获得一个应用程序的启动次数,运行时间等信息
- Android电池信息
- Android 怎样获得手机信息(四)