title: Android onCreateOptionsMenu not called when hitting the menu button
body: <p>I have the problem that my application doesn't show the options menu when I hit the menu button. Debugging shows that the onCreateOptionsMenu(Menu menu) method is not called after hitting the menu button. I have another application with the same code for the menu and there it works. So now my code:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.app_menu, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
  
      switch (item.getItemId()) {
          case R.id.options:
              Intent intent = new Intent(this, OptionsActivity.class);
              startActivityForResult(intent, 1);
              return true;
          default:
              return super.onOptionsItemSelected(item);
      }
  
  }
  </code></pre>
  
  <p>In res -> menu -> app_menu.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
     &lt;item android:id="@+id/options" android:title="@string/options" /&gt; 
  &lt;/menu&gt;
  </code></pre>
  
  <p>I have no idea why the onCreateOptionsMenu is not called after hitting the menu button. I hope you guys can help me.</p>
  
  <p>Edit: I'm not using Fragments and the onCreateOptionsMenu is really never called. Not at the start of the app and not when i'm hitting the menu button on my device.</p>