title: Call method when home button pressed
body: <p>I have this method in one of my Android Activities:</p>
  
  <pre><code>@Override
  public boolean onKeyDown(int keyCode, KeyEvent event)
  {
      if(keyCode == KeyEvent.KEYCODE_BACK)
      {
          Log.d("Test", "Back button pressed!");
      }
      else if(keyCode == KeyEvent.KEYCODE_HOME)
      {
          Log.d("Test", "Home button pressed!");
      }
      return super.onKeyDown(keyCode, event);
  }
  </code></pre>
  
  <p>But, even though the KEYCODE_HOME is valid, the log method never fires. This works for the back button though. Does anyone know why this is and how to get this to work?</p>