title: How can I close my application on back pressed in android
body: <p>I want to go on home screen when I press device's back button.I am using this code..</p>
  
  <pre><code>public void onBackPressed() {
     this.finish();
     return;
  }
  </code></pre>