I would like to know how to prevent the menu bar from closing.
@Override
public void onOptionsMenuClosed(Menu menu) {
}
When the action begins, I open the menu and want it to remain open.
new Handler().postDelayed(new Runnable() {
public void run() {
openOptionsMenu();
}
}, 1000);
source
share