you have to close all application's activities! When you change activity,
you have to call finish() on old activity, so just one activity is shown on
screen and in stack.

2009/8/10 Blackmarket <pascal.se...@gmail.com>

>
> Doesn't work. It just closes the active Activity and changes to the
> last Activity. Actually it has the same effect like finish()
>
> Regards, Pascal
>
> On 10 Aug., 11:54, Carl Whalley <carl.whal...@googlemail.com> wrote:
> > System.exit(0)
> >
> > --
> > Android Academyhttp://www.androidacademy.com
> >
> > On Aug 10, 10:36 am, Blackmarket <pascal.se...@gmail.com> wrote:
> >
> > > Hi,
> >
> > > i want to add an exit button to the menu, but didn't see an easy way
> > > to close an application or acces all activities of an application and
> > > finish them. Is there an easy approach avaible?
> >
> > > Regards, Pascal
> >
> >
> >
>

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