ActivityManager manager = (ActivityManager) getSystemService(Activity.ACTIVITY_SERVICE);List list = manager.getRunningAppProcesses();Log.v(TAG, "Got "+list.size()+" processes");for(int i=0; i<list.size(); i++){Log.v(TAG, "PID: "+list.get(i).pid+", Name: "+list.get(i).processName);}
No comments:
Post a Comment