Fwiw, that is the API used to determine the recent tasks to show in the task switcher.
On Thu, Apr 28, 2011 at 12:15 AM, Dianne Hackborn <[email protected]>wrote: > Yes it returns the recent tasks. You'll need to describe more what you > mean by "it didn't work out well." > > > On Wed, Apr 27, 2011 at 9:14 AM, Simon <[email protected]> wrote: > >> Hello! >> >> I need a little bit help getting information about the last lets say 5 >> application that was opened/used. >> >> ActivityManager m = >> (ActivityManager)this.getSystemService(ACTIVITY_SERVICE); >> RecentTaskInfo task = m.getRecentTasks(5,0).get(0); >> >> Then i used: >> >> String output = "the last application you've executed is '"+task.id >> +"' and the PID is '"+task.toString()+"'"; >> But it didnt work out well. I think im on the right track with >> ActivityManager to track the latest app. >> >> Thank you! >> >> And ye i only need to get enough information so i can run/start them >> later. >> >> //Simon >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

