I would like to open the optionsMenu programmatically without a click on the menu key from the user. How would I do that?
If you are inside an your view, you can write
((Activity)getContext()).openOptionsMenu();