System.exit() kills your entire process.
activity.finish() just hides, stops and destroys your activity. Your
process is still running.

You should not call System.exit(). It could mess up Android's handling
of the lifecycles of your activities and result in an awkward user-
experience (e.g. when killing the process, the previous activity from
which you laucnhed your activity may be gone as well. Android may try
to restart the process again and re-create that accidentally killed
parent-activity... but still).

On Jan 21, 3:46 pm, "guiha...@gmail.com" <guiha...@gmail.com> wrote:
> Hi,
>
> I've been using System.exit to quit the application. Is
> Activity.finish a better approach? What would be the differences?
>
> thx
>
>    guich
-- 
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