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?