Tuesday, November 13, 2012

Options Menu won't show in ICS(Ice Cream Sandwich)

I am developing an application in android and decided to code at the options menu, to add some preferences/settings. As I want to see the output of my code, I notice that the options menu isn't showing, no matter how I override the onCreateOptionsMenu(..), and decided to hit google. This link gives the ANSWER.

You must change the targetSdkVersion to <= 10 in the manifest.xml, and run the code again, and successfully the options menu showed.

No comments:

Post a Comment