On Mon, Aug 10, 2009 at 7:50 AM, Aracos<[email protected]> wrote:
>
> HI @all,
>
> I would like to have a Menu – Button, called Home,  that goes back to
> my root activity and removes all activities from the stack. Therefore,
> if I press the back button afterwords, the application would close.
>
> I tried calling the Activity with the intent flag
> 'FLAG_ACTIVITY_CLEAR_TOP' but it does not seem to work.

It most certainly does work. What exactly does not work for you? Is
the activity not started, or are the other activities not closed? It's
hard to say what's wrong with the code you posted, since you don't
mentioned which activity you posted code for, and what the other
activities look like.

--~--~---------~--~----~------------~-------~--~----~
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