title: How finish() work internally
body: <p>I am building an Android app with a single Activity. The app is supposed to be closed when I click a button which calls the Activity's <code>finish()</code> method. </p>
  
  <p>However, the app is still on the running-app list. Shouldn't the app be closed?</p>
  
  <p>Thanks</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I can kill the process completely by running the <code>killProcess()</code>, which can be verified by checking the running processes via adb command <code>adb shell ps</code>. However, what is confusing is that if I push the multi-task button, my app still shows up as "running".            </p>
  
  <pre><code>int pid = android.os.Process.myPid();
  android.os.Process.killProcess(pid);
  </code></pre>
  
  <p>Also, I'm still curious why <code>finish()</code> won't close a single Activity app completely. Is there a more graceful way to close the app than calling <code>killProcess()</code>?</p>