>     In my application i have to close the application.

No, you don't.

>     Hence i am using System.exit(1).

Please do not do this.

>     But some times it is trying to restart entire application.
>
>     What is the problem?

You are trying to close the application. Please do not do this.

If you want to simply close up an activity, the activity can call finish().

>      How can i close an application safely?

You do not need to:

http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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