I Found some codes for quit an Android application programatically. By calling any one of the following code in onDestroy() will it quit application entirely?
The correct and exact solution to quit the app on button click is using the below code:
//On Button Back pressed event
public void onBackPressed() { moveTaskToBack(true); finish(); }