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

Reply via email to