How to close/exit an application in android?
<p>I tried closing the application using the finish(), but finish() method just finishes the activity, the application does not closes.
Now I am using System.exit(0) to close the application  sometimes it works but sometime it throws an exception. How can I completely exit from an application??  </p>
