I'd want to get recent task list.
I use the following code, but when I try to get origActivity info, origActivity is always null:
ActivityManager activityManager = (ActivityManager) c.getSystemService(Context.ACTIVITY_SERVICE);
List<RecentTaskInfo> recentTasks = activityManager.getRecentTasks(8,0);
I want to know application label, package name and activity name of all activities of the list.
The only way to know these elements is to use origActivity from RecentTaskInfo but it is always null (I get a NullPOinterException).
The only information that I can get is the Activity id.
There is a way to know application label, package name and activity name of all recent task?