We are trying to find the appropriate Android
API
calls to make within our application retrieve details on the CPU, Memory, Disk and Network information like Android Studio
in its monitor?
We are looking to capture this data for both the overall phone and a particular targeted application (not the one running the monitor as it will be run as a background service).
Below is an example of Android Studio's Monitor
We have been able to find a API to monitor memory but not CPU, Network or Disk info.
API
to call for this? API
for ActivityManager.MemoryInfo which looks to work. API
for this? API
for this? Thank you
In one of the apps we developed, we came across a similar requirement and here's what we did.
We did not capture the Disk IO stats - so I don't have anything on that one.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.