I so far tried to put the line openOptionsMenu(); in onCreate(), onResume() and within a runnable sent to runOnUIThread() from onCreate() and no luck yet – i get an exception:
11-16 10:14:57.499: E/AndroidRuntime(939): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
How do i ensure execution of openOptionsMenu(); right when the activity is running?
Try this. Add the below method to your Activity and call up
openOptionsMenu()from it like I have showed here.