java - Android onCreateOptionsMenu is not displaying -
In my Android activity, I removed the action bar using this theme
& Lt; Style name = "theme." Parents = "@ Android: Style / theme. Any title" & gt; & Lt; / Style & gt; But my problem is not displayed on "Create Option Manage", I have tried this method to create that PLS View
Private Zero GetOverflowMenu (see {configuration config = ViewConfiguration.get (Home.this); Field menu field = field combination Class.getdcloidfield ("sHasPermanentMenuKey"); If (menuKieField! = Null) {menuKeyField.setAccessible (true); MenuKeyField.setBoolean (config, false); }} Hold (exception e) {e.printStackTrace (); }} The "Create Option Manage" is not showing on this please help me
but it is displayed in Samsung
Because: Samsung Mobile has its own hardware menu button, but the Nexus is not in the other Please refer to the image
> << Strong> AndroidManifest.xml I just deleted
< P> Finally I got the answer
this line
Android: targetSdkVersion = "18"
Comments
Post a Comment