Possible Duplicate:
How to open the options menu programmatically?
I read through quite a few posts from here and i found a code which i might use it to help me in showing the menu option instead of click the menu button from the emulator. but i do not know where to place the code in.
This is the code:
Activity.openOptionsMenu();
Is it placed in the onCreate method?
Apparently it doesn’t work if you do it in the onCreate method. Check out these posts:
https://stackoverflow.com/a/8676419/349012
https://stackoverflow.com/a/10220312/349012