How to detect when android option sub-menu exit?
I am trying to detect if user cancels(quits without choosing any option).I tried overwriting **onOptionsMenuClosed(Menu menu)**, and **onKeyUp(int keyCode, KeyEvent event)**(in order to detect menu & back keys) in the activity. But, non of them responses to sub menu. How can i detect when android option sub-menu exit?
How to detect when android option sub-menu exit?
===

I am trying to detect if user cancels(quits without choosing any option).I tried overwriting **onOptionsMenuClosed(Menu menu)**, and **onKeyUp(int keyCode, KeyEvent event)**(in order to detect menu & back keys) in the activity. But, non of them responses to sub menu. How can i detect when android option sub-menu exit?