Skip to content Skip to sidebar Skip to footer

OnCreate Options Menu Is Not Showing In Android 3.1

i am creating an app only for tablets. I have a preference activity page which i am calling through the OnCreateOptions Menu. The oncreateoptins menu is not working in tablets of a

Solution 1:

Yes this problem is common , Do one thing give a number less than 11 in the targetSdkVersion in Manifest file or simply remove the tarketSdkVersion. Your problem will be get resolved.


Solution 2:

I think problem is in different handling of options menu. According to dev guide, on Android 3.x onCreateOptionsMenu() is called when the activity starts to populate ActionBar, not when user touches the Menu button for the first time


Solution 3:

I had the same problem on tablets and I did like raman suggested. Changed the project's build target and the targetSdkVersion (from manifest) to 10.


Post a Comment for "OnCreate Options Menu Is Not Showing In Android 3.1"