Use Intent.FLAG_ACTIVITY_CLEAR_TOP.

Don't use singleTask.

On Tue, Oct 13, 2009 at 12:24 PM, Chister Nordvik <cnord...@gmail.com>wrote:

>
> Hi!
>
> Our application which consists of something like this:
>
> Main menu
> => View contacts
>  => Edit contact
> => View groups
> => Settings
>  => Browser settings
>
> I have then added gestures so that the user can jump between any of
> these screens with a gesture. But this leads to a huge activity stack
> that just grows and grows so how should I properly implement this?
>
> I thought about the following:
>
> Main menu (SingleTask)
> => View contacts  (SingleTop)
>  => Edit contact
> => View groups (SingleTop)
> => Settings (SingleTop)
>  => Browser settings (SingleTop)
>
> If I do nothing then I end up with something like this (using
> gestures):
> Main menu
>  - View Contacts
>   - Main Menu
>     - Browser Settings
>       - View Contacts
>         - Main menu
>
> I would guess this would lead to memory issues sooner or later?
>
> -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
-~----------~----~----~----~------~----~------~--~---

Reply via email to