Hello,

I had same issue, found a solution and post it in the blog:
http://softteco.blogspot.com/2011/07/how-to-close-activity-and-all-children.html

Do not forget to say thanks in comments if this info is useful! :)

Happy coding (:

Best regards,
Yahor

On Wed, Aug 24, 2011 at 11:01 AM, Droid <rod...@gmail.com> wrote:

> System.exit(0) is not recommended because it messes up when a user
> brings the app back after a short pause.
> Horrible things can happen to what you've got in memory. Its not a
> clean or consistent memory wipe IMO.
>
> I think you have to work with the idea that activities are held in
> memory for a time in the case of a return by the user to the app.
>
> It is sometimes hard to deal with, but in my experience, I simply have
> to go with it. I end up using onStop() and onStart() sometimes. And it
> can get complicated.
>
> Sorry if this is not the answer you wanted to hear as I expect you
> want a complete close of the app and all its memory contents.
> There might be a way of doing that but I don't know it and
> System.exit(0 is too unpredictable to use AFAIK.
>
>
>
> On Aug 24, 8:19 am, GopalaKrishnan D <gopall...@gmail.com> wrote:
> > i tried finish(); and System.exit(0);
> >
> > if i use any one means only current activity closed.... its not close
> entire
> > app
> >
> > Which code i want to use close or exit entire app.
> >
> > --
> > ~* Regards*
> > *GopalaKrishnan D*
>
> --
> 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
>

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