Tuesday, November 3, 2009

[android-developers] Re: Clear Activity stack?

you can use activityB.finish(); for each activity you want remove.

On 3 nov, 18:00, Mark Wyszomierski <mar...@gmail.com> wrote:
> Hi,
>
> Is there a way to clear our Activity stack? For example, a user in my
> app progresses through these activities, one is launched from the
> previous activity:
>
>  ActivityA ->
>  ActivityB ->
>  ActivityC
>
> if the user is now looking at ActivityC, and they hit the back button,
> they will go back to ActivityB.
>
> Is it possible to add a menu to ActivityC where the user can clear
> their activity stack, and then launch a new instance of ActivityA?
> This would be so the user can jump to a particular activity in my
> application without getting confused with the back button + history,
>
> Thanks

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment