ActivityManager.getRecentTasks() returns 0 results
<p><strong>update</strong> I've tried this on a 1.6 AVD and a real Droid Incredible. Both have the same issue.</p>

<p>I need to get a list of recent tasks, but ActivityManager.getRecentTasks() always returns 0 results and can't figure out why.</p>

<pre><code>ActivityManager result = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE);
ArrayList&lt;RecentTaskInfo&gt; apps = (ArrayList&lt;RecentTaskInfo&gt;) result.getRecentTasks(10, ActivityManager.RECENT_WITH_EXCLUDED);
</code></pre>

<p>I've set <code>android.permission.GET_TASKS</code> in the manifest but <code>apps</code> is always 0.</p>

<p>Anyone have insight in to why? I'm stumped.</p>
