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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -