When I used getRunningProcesses(), I got about 20~30 processes.
However, when I used the TOP command in an Android terminal, I saw more than 80 processes. I found some processes owned by “root” have zero memory consumption.
What cause the differences? Are some of the processes found by TOP not currently running?
topshows all processes running on the operating system. WhereasActivityManager.getRunningAppProcessesshows only processes started by Android.Root owned processes are usually started by linux kernel for event handling , where as processes returned by
ActivityManager.getRunningAppProcessesare only those started by Android framework