Use for every activity you launch when you don't want it to stack up. http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP
On Tue, Oct 13, 2009 at 12:54 PM, cnordvik <cnord...@gmail.com> wrote: > > > Use Intent.FLAG_ACTIVITY_CLEAR_TOP. > > Yes, I guess you mean for the main menu right? I can add that one, but > if the user makes the "Contact gestures" 5 times, then I end up with 5 > views with 5 adapters with the same data? > > Let's say the user makes the following gestures: > - View Contacts > - Browser Settings > - View Contacts > - Browser Settings > > How can I reuse the activities so that I don't have multiple > activities holding the contacts list? At least in my testing I run > into out of memory problems when making a lot of gestures between > different activities. > > -Christer > > > -- Dianne Hackborn Android framework engineer hack...@android.com 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 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 -~----------~----~----~----~------~----~------~--~---