How to use menu and onKeyDown() on the same activity
<p>I am developing an Android app. I have written my own code for back key event.
For that i am catching events using this method 
public boolean onKeyDown(int keyCode, KeyEvent event) .....</p>

<p>I also want to use Menu options I have used Inflator for that.
But when I click on menu button, that event caught by my onKeyDown method.</p>

<p>I am not expecting that, I expect to execute following methods,</p>

<pre><code>public boolean onCreateOptionsMenu(Menu menu){ // creating menu using MenuInflator }

public boolean onOptionsItemSelected(MenuItem item) {
        // Handle item selection
        switch (item.getItemId()) {
        case :
            return true;
        default:

        }
    }
</code></pre>

<p>How could I use both the things on the same activity?? Any Idea ???</p>
