I am tring to execute an application with a menu in my galaxy tablet. here is the code for creating the menu:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
and here is the menu layout:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_about"
android:title="@string/menu_about"
android:icon="@drawable/ic_about"
/>
<item android:id="@+id/menu_limt_time_rocord"
android:title="@string/menu_limt_time_rocord"
android:icon="@drawable/ic_menu_timer"
/>
</menu>
While in my phone the menu is being display by pressing the “ordinary” menu button, in my galaxy tablet the menu button is not displayed at all and I am not able to open the menu at all.
how do I display a menu button in my tablet?
Thanks in advance
Kobi
You menus and all are correct. DO one thing, remove targetSDKVersion from the manifest file and use only
<uses-sdk android:minSdkVersion="8" />.I think this is the only problem. Now on 3.0 onward you can see the menu buttons.