Android - How to programmatically monitor the memory usage of any running application on a device?

How to check how much memory (RAM) is consumed by any of the running applications on the device?

Thank.

+5
source share
1 answer

Take a look at the ActivityManager .

getRunningAppProcesseswill give you a list of PIDs and then getProcessMemoryInfoprovide you with memory information about them.

For a complete, in-depth answer, see the following thread: How do I know the memory usage of an application in Android? .

+8
source

All Articles