You could launch the main activity again with the 'clear top' flag, which
has the effect of clearing all activities on top of it.



On Sat, May 30, 2009 at 11:31 AM, guruk <[email protected]> wrote:

>
> Hi,
>
> is it possible with one call to finish all previous Activities.
> (like: this.finish(all) :)
>
> I have a main activity, calling a preferences and there is a
> switchuser point that switch the user
> and call the main activity again. But than i dont need that the user
> can go back, step by step,
> It would be just fine i could say "kill all previous activites" in the
> moment the user klick "switch user"
>
>
> any idea?
>
> greets
> chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to