How to add a listener to home button?
<p>How to add a listener to home button? i.e I want to add some functionality when home button is pressed. How do I do it??
I did the following, but it is not working for home button. It's working only for back button.</p>

<pre><code>public boolean onKeyDown(int keyCode, KeyEvent event)
    {
        if (keyCode == KeyEvent.KEYCODE_BACK)
        {
                   // some funtionality

    }

    if (keyCode == KeyEvent.KEYCODE_HOME)
    {

        // some funtionality

    }

    // // TODO Auto-generated method stub
    return super.onKeyDown(keyCode, event);

}`
</code></pre>

<p>So plz help me</p>
