Detecting menu button being pressed a second time
<p>I am wanting a certain flag in my code to be set when a menu is on screen. I tried catching the keyCode == KeyEvent.KEYCODE_MENU event in onKeyDown to detect when the menu would appear - but then if the menu button is pressed a second time (making the menu disappear), there is no keyCode == KeyEvent.KEYCODE_MENU event.</p>

<p>Should I look for some other event, or is there a function to test if some kind of menu is on display?</p>
