Possible to hide option menu button on ICS?

Roy Solberg picture Roy Solberg · Dec 22, 2011 · Viewed 9.3k times · Source

I have an app that uses android:minSdkVersion="7" and android:targetSdkVersion="10". Is it possible to hide the option menu button that is on screen on ICS (api level 14)?

Some of the activities may use the option menu, but not all. It would be great to show/hide the option menu button to make it more intuitive for the user where he/she can expect to find more functionality.

Answer

user1076637 picture user1076637 · Jan 12, 2012

How about increasing targetSdkVersion to 11 (or even 15)? According to the Android CDD that cut off for legacy Menu button is version > 10.