Android application can be exit by pressing the back button. Sometimes a confirmation for exit is asked on pressing the back button.
Choose an option which confirms the exit from the application and then you will exit from the application.
In some applications, an exit button is there. On clicking that button, you can easily exit the application.
You can also exit an app using codes. If you want to quit a app then use
System.exit(0);
Your app will be closed immediately on using the above code without displaying ANR dialog or something like that.