How to check how much memory (RAM) is consumed by any of the running applications on the device?
Thank.
Take a look at the ActivityManager .
getRunningAppProcesseswill give you a list of PIDs and then getProcessMemoryInfoprovide you with memory information about them.
getRunningAppProcesses
getProcessMemoryInfo
For a complete, in-depth answer, see the following thread: How do I know the memory usage of an application in Android? .