I am trying to add an option menu in actionbar to my existing app but it is not working. If I create a new project with \"hello world\" default app I can see the button in a
i am using Samsung young 2 as android emulator and i have the same problem ,i reslov this by removing
android:theme ="" from the manifest.xml and changing the theme to another theme support action bar
You should extend AppCompatActivity.
You have extended Activity. Try extending ActionBarActivity in java code
What solved my issue in this regard was, in the design view, click the eye icon (view options) and select Show Layout Decorations.

you have to call the method setHasOptionsMenu(true); in the OnCreate Method