我对Android很新,我希望通过我正在制作的应用来跟踪和记录手机的整体CPU使用情况。因此,我希望能够将总体CPU使用率作为%值获得,例如50%,100%等,就像Windows中的任务管理器显示CPU的%使用率或其他Android应用程序的使用情况一样%CPU负载(例如此问题中提到的How to find CPU load of any Android device programmatically)
我已经查看了其他几个Stack Overflow问题,但是我找不到任何答案,说明我是否可以获得这个CPU使用率我正在寻找一个可以存储在数据库中的单个值跟踪时间。
这些是我看过的其他一些问题:
How to find CPU load of any Android device programmatically
How I get CPU usage and temperature information into an android app?