title: Quit Application when home button pressed.
body: <p>I have a security program, so i need to quit the application when the HOME button pressed. But I know the HOME button action cannot be implemented. </p>
  
  <p>Then, I know that I can use </p>
  
  <pre><code>android:noHistory="true"
  </code></pre>
  
  <p>to do it. But I have used </p>
  
  <pre><code>startActivityForResult(intent, 0);
  </code></pre>
  
  <p>to call a new activity. When the activity called back by </p>
  
  <pre><code>this.setResult(RESULT_OK, intent);
  this.finish();
  </code></pre>
  
  <p>The original activity has already quit. </p>
  
  <p>How can I quit the application when the HOME button pressed, but the startActivityForResult will not quit the activity? </p>