I am developing an app that doesnt show up menu items in the top right corner. In google nexus it shows up but not in micromax canvas HD.
below is my menu xml.
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/mnuRecentLookUp" android:title="@string/mnuRecentLookUp" android:icon="@drawable/clock" />
<item android:id="@+id/mnuBookmarks" android:title="@string/mnuBookmarks" android:icon="@drawable/bookmarks" />
<!-- <item android:id="@+id/mnuFontSize" android:title="@string/mnuFontSize" android:icon="@drawable/fontsize"/>-->
<item android:id="@+id/mnuHelp" android:title="@string/mnuHelp" android:icon="@drawable/help" />
<item android:id="@+id/mnuClose" android:title="@string/mnuClose" android:icon="@drawable/ic_menu_close" />
</menu>
@Override
public boolean onCreateOptionsMenu( final Menu menu )
{
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.nav_home, menu);
// Calling super after populating the menu is necessary here to ensure that the
// action bar helpers have a chance to handle this event.
return super.onCreateOptionsMenu(menu);
}
I tried overflow to show the 3 dot icon on top right corner.It works fine in 4.0 or more versions not in 2.2-2.3. in android 2.3, it gives noSuchFieldException {shasPermanentmenukey}.
Please help me to solve the issue. I want the things to work on all android versions i.i. 2.2 and above.
Thanks in advance....