I would like to program a "task switcher". For that, i got all the running apps with this command:
- Code: Select all
List<ActivityManager.RunningTaskInfo> allTasks = activityManager.getRunningTasks(30);
So that's nice, i can kill every one of them i want with the ID, but i cannot understant how to launch one of the.
I tried the startactivity, but i need an intent, i am not able to figure how to create the intent...
Could you please help me?
Thank a lot.