[android-developers] Re: SingleTask, SingleTop how to properly implement a GUI

2009-10-13 Thread Dianne Hackborn
Use Intent.FLAG_ACTIVITY_CLEAR_TOP. Don't use singleTask. On Tue, Oct 13, 2009 at 12:24 PM, Chister Nordvik cnord...@gmail.comwrote: Hi! Our application which consists of something like this: Main menu = View contacts = Edit contact = View groups = Settings = Browser settings I

[android-developers] Re: SingleTask, SingleTop how to properly implement a GUI

2009-10-13 Thread cnordvik
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

[android-developers] Re: SingleTask, SingleTop how to properly implement a GUI

2009-10-13 Thread Dianne Hackborn
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

[android-developers] Re: SingleTask, SingleTop how to properly implement a GUI

2009-10-13 Thread cnordvik
Use for every activity you launch when you don't want it to stack up. http://developer.android.com/reference/android/content/Intent.html#FL... Sorry for not reading the documentation properly. Thanks! -Christer --~--~-~--~~~---~--~~ You received this message