Search code examples
androidandroid-optionsmenuoncreateoptionsmenu

Android Lollipop unintended options menu


All of my activities have no onCreateOptionsMenu or related methods. I deleted the menu.xml and all related ones as well. I still see the options menu on the right side of the bottom bar. Any ideas why this might occur? Min SDK is 10 and the device is Nexus 5 5.0.


Solution

  • You need to set your targetSdkVersion to 11 or higher to get rid of the legacy action overflow button.

    Changing minSdkVersion to >=11 works too, but is not strictly necessary.