Through ActivityManager, get all running tasks. Then get the intent object of the package you want to bring up. call startActivity() with that intent object. It all things you should do. Have fun .
On Oct 3, 7:08 pm, sdphil <phil.pellouch...@gmail.com> wrote: > is there a way to bring an app to the foreground? > > I have an application widget that when clicked, I want to launch an > existing application to the foreground, with whatever "foreground" > activity it has at the time. > > tia. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---