Is there any other way to call openOptionsMenu after activity is displayed without using something like this:
new Handler().postDelayed(new Runnable() {
public void run() {
openOptionsMenu();
}
}, 1000);
EDIT: I would appreciate example like this:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Now I guess something like Window.Callback.onAttachedToWindow(...) should be done?
}