views:

56

answers:

1

I've got a list of running processes from ActivityManager.RunningAppProcessInfo, like this:

ActivityManager am = (ActivityManager) getSystemService(Service.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> processes;            
processes = am.getRunningAppProcesses();
for(ActivityManager.RunningAppProcessInfo info: processes) {
    Log.i("Process:", info.processName);
}

Is there any way to retrieve the icons that match the activities for these processes?

+1  A: 

Turns out this was already answered here: http://stackoverflow.com/questions/2384713/how-to-get-the-icon-of-other-applications-android

Stuart Axon