Reputation: 1
I need to get process ID's of all the running processes in android as a part of my code. which is the most efficient way of doing it?is there an API for it?
Upvotes: 0
Views: 1617
Reputation: 3399
You Can PID's By following code
RunningAppProcessInfo service[]= manager.getRunningAppProcesses();
String pid = service.pid;
Upvotes: 1
Reputation: 455
I think you'd need to use ActivityManager for the process info. You could:
Upvotes: 0