How to control Home Button in Android?
<p>I am in my application and I have control back button but I also want to control home button.  I have written the code but I am unable to control HOME button.  Here is my code.  Help me to achieve it.</p>

<pre><code>public boolean onKeyDown(int keyCode, KeyEvent event) 
{
  if (keyCode == KeyEvent.KEYCODE_BACK ) 
  {
    return false;
  }
  else if (keyCode == KeyEvent.KEYCODE_HOME)
  {
    return false;
  }
  return super.onKeyDown(keyCode, event);    
}
</code></pre>
