Is there any way to get instant Power Consumption for Android?

时间秒杀一切 提交于 2019-12-10 10:59:15

问题


Is there a way to get the instant power consumption on an Android phone? Not a per process consumption, but an overall consumption.

I need it to be accessible on an app to be associated with some settings on the phone at that time.

Regarding the access of the information from an app, is it possible to get the PowerTutor data into my own app?


回答1:


As commented by @adelphus, some devices have current info on /sys fs. There is a lot of comments about CurrentWidget code, available here. The link may guide your search to especific files.



来源:https://stackoverflow.com/questions/37399709/is-there-any-way-to-get-instant-power-consumption-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!