Re: [android-developers] Android: Get Recently used Apps

2011-04-27 Thread Dianne Hackborn
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 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, Sim

Re: [android-developers] Android: Get Recently used Apps

2011-04-27 Thread Dianne Hackborn
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 wrote: > Hello! > > I need a little bit help getting information about the last lets say 5 > application that was opened/used. > > ActivityManager m =

[android-developers] Android: Get Recently used Apps

2011-04-27 Thread Simon
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 appli