How to get App info from RecentTaskInfo?
<p>Currently, I can only get the IDs of recent tasks, as below:</p>

<pre><code>final List&lt;RecentTaskInfo&gt; recentTasks = activityManager.getRecentTasks(Integer.MAX_VALUE, 1);
for (int i = 0; i &lt; recentTasks.size(); i++) 
{
     System.out.println(""+recentTasks.get(i).id);
}
</code></pre>

<p>But how to get other info? like package_name, main_activity and so on?</p>

<p>Also I found some IDs are <code>-1</code>. What does it mean? Can we get info of these tasks?</p>
