Have a look at this SO question :
How do I programmatically check if the menu of my activity is showing at a particular moment?
Not a proper solution but the best workaround possible at the moment.
Question
How to check that options menu is opened? (menu in actionbar, or menu from preference button in older devices) There is some method for this?
Solution
Have a look at this SO question :
How do I programmatically check if the menu of my activity is showing at a particular moment?
Not a proper solution but the best workaround possible at the moment.