title: How to quit android application programmatically
body: <p>I found some codes for quitting an Android application programmatically. By calling any one of the following codes in onDestroy(), will it quit application entirely?</p>
  <ol>
  <li><code>System.runFinalizersOnExit(true)</code><br />
  (OR)</li>
  <li><code>android.os.Process.killProcess(android.os.Process.myPid());</code></li>
  </ol>
  <p>I don't want to run my application in background after clicking quit button.
  Please inform me if I can use any one of these codes to quit my app? If so, which code can I use? Is it good way to quit the app in Android?</p>