On Jun 19, 1:49 pm, kingkung <[EMAIL PROTECTED]> wrote: > Also, if using startSubActivity, is there a good way to implement this > navigation such that when I switch to the same screen twice, such as > A-->B-->A, that the second A is not an entirely new activity, but > rather goes back to the original A activity? > > Thanks for your help, > > James
Use i.setLaunchFlags(Intent.NEW_TASK_LAUNCH); on your intent i before call startActivity to prevent opening a second instance of an activity in the case it is already running. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

