Varundroid
Varundroid

Reputation: 9234

Android - How to track the memory usage of an any running app on device programmatically?

How to check that how much memory(RAM) is getting consumed by any of currently running app on device?

Thanks.

Upvotes: 6

Views: 28367

Answers (1)

Brian Clow
Brian Clow

Reputation: 156

Look at the ActivityManager.

getRunningAppProcesses will get you a list of PIDs, and then getProcessMemoryInfo will give you memory details about them.

See the following thread for an complete, in-depth answer: How do I discover memory usage of my application in Android?.

Upvotes: 10

Related Questions