I am developing an Android application that shows the CPU load per core and memory consumption. For CPU load I am reading /proc/stat and for memory -> /proc/meminfo. However
The answers of @Torch2424 and @Andre are ok but for my uses they lack several things:
Here is the code that hopefully fix correctly this: available as a class or as a simple app.