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

 Enter image details here > << Strong> AndroidManifest.xml I just deleted

< P>

Finally I got the answer

this line

  Android: targetSdkVersion = "18"    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -