title: Home key press Event Listener
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2208912/how-can-i-detect-user-pressing-home-key-in-my-activity">How can I detect user pressing HOME key in my activity?</a>  </p>
  </blockquote>
  
  
  
  <p>I am using below lines of code to find if the use press the backkey from android phone,its working fine .</p>
  
  <p>But I want to <strong>detect home key Button press event</strong>,Anyone can guide how it is possible ?</p>
  
  <pre><code>@Override
  public void onBackPressed() 
  {
      Toast.makeText(getApplicationContext(),"BackKeyPressed", Toast.LENGTH_LONG).show();
      super.onBackPressed();
  }
  </code></pre>
  
  <p>Thanks . . . </p>