title: I need to minimize the android application on back button click
body: <p>I need to minimize the application when back button is pressed.</p>
  
  <p>I use following code to catch hardware back button click event</p>
  
  <hr>
  
  <p>help me with the code of minimize on back key pressed</p>
  
  <pre><code>@Override
  public boolean onKeyDown(int keyCode, keyEvent event) {
      switch(keyCode) {
      case KeyEvent.KEYCODE_BACK;
      //minimize application
      return true;
      }
      return super.onKeyDown(keyCode, event);
  }
  </code></pre>