I'm fairly new to Android, and am looking to track and log the overall CPU usage of a phone through an app that I'm making. Therefore, I'd like to be able to obtain the overall CPU usage as a % value, like 50%, 100%, etc., like how Task Manager in Windows displays the % usage of the CPU, or how other Android apps have a % CPU load (such as mentioned in this question: How to find CPU load of any Android device programmatically)
I've looked through several other Stack Overflow questions, but I haven't been able to find any answers that say whether I can get this CPU usage I'm looking for as a single value that I can store in a database and track over time.
These are some of the other questions I've looked at:
How to find CPU load of any Android device programmatically
How I get CPU usage and temperature information into an android app?