0

I have an Android application where an options menu is essential for setting up some preferences values.

Here minimum SDK version is 8 and the xml for the menu is like below.

<item
    android:id="@+id/mainmunu_setting"
    android:icon="@android:drawable/ic_menu_preferences"
    android:title="@string/settings">
</item>

In Samsung devices I can open the menu as there is a menu button, but in Xperia Z there is no menu button and the the menu is not visible on the ActionBar either as the ActionBar is not customizable for SDK version 11 or below according to this:
How do I change the background color of the ActionBar of an ActionBarActivity using XML?
How can I have a menu appearing on Sony Xperia Z.

On Xperia Z device On Xperia Z device


On Samsung Galaxy S Duos 2 device On Samsung Galaxy S Duos 2 device

Thank you!

Community
  • 1
  • 1
vidulaJ
  • 1,232
  • 1
  • 16
  • 31

1 Answers1

1

If your app is targeting API level 11+ then the menu dots will disappear. By targeting API 8 then you should find the overflow menu appears on the navigation bar of the Xperia Z. I'd highly suggest though targeting a higher level API and actually increasing your minimum SDK since a small percentage of devices now use SDK level 8 or less.

Pete
  • 597
  • 1
  • 8
  • 27