How to exit a application in android
<p>I am trying to apply exit functionality in my application on Home activity .I have tried some ways to perform my target like <code>System.Exit(0);</code> or <code>finish();</code> or <code>android.os.Process.killProcess(android.os.Process.myPid());super.onDestroy();</code> but problem is if i navigate to another activity from home than i came back to home activity and  exit application it returns to previously navigated activity</p>
