有没有办法获取Android的即时功耗? [英] Is there any way to get instant Power Consumption for Android?

查看:209
本文介绍了有没有办法获取Android的即时功耗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法获取Android手机的即时功耗?不是每个进程的消耗,而是整体的消耗.

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.

关于从应用程序访问信息,是否可以将PowerTutor数据放入我自己的应用程序中?

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

推荐答案

如@adelphus所评论,某些设备具有有关/sys fs的当前信息.在此处上有很多有关CurrentWidget代码的注释.该链接可以指导您搜索特定的文件.

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.

这篇关于有没有办法获取Android的即时功耗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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