title: Menu showing but onCreateOptionsMenu() not called
body: <p>The menu is visible in the Toolbar of the application and I can open it and see the menu items, however the <code>onCreateOptionsMenu()</code> function is not being called, I know this by setting a break point and debugging, the same goes for the <code>onOptionsItemSelected()</code> function, it is not called at all. I have looked at other stack overflow posts about the same problems but I don't seem to have done any of the usual errors. Does anyone know what the issue is and how to fix it?</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.menu, menu);
  
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      switch(item.getItemId())
      {
          case R.id.menuItem1:
              Toast.makeText(this, "menuItem1 selected", Toast.LENGTH_SHORT).show();
              return true;
          case R.id.menuItem2:
              Toast.makeText(this, "menuItem2 selected", Toast.LENGTH_SHORT).show();
              return true;
          case R.id.menuItem3:
              Toast.makeText(this, "menuItem3 selected", Toast.LENGTH_SHORT).show();
              return true;
          default:
              return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p><strong>menu.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;item
          android:id="@+id/menuItem1"
          android:title="One"
          app:showAsAction="never"/&gt;
  
      &lt;item
          android:id="@+id/menuItem2"
          android:title="Two"
          app:showAsAction="never"/&gt;
  
      &lt;item
          android:id="@+id/menuItem3"
          android:title="Three"
          app:showAsAction="never"/&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>Edit:</strong>
  In my <code>onCreate()</code> in MainActivity.java I have this line of code:</p>
  
  <pre><code>toolBar.inflateMenu(R.menu.menu);
  </code></pre>
  
  <p>If I remove this line, the menu in the Toolbar disappears. Don't know if this helps or has anything to do with my issue, but just putting out there so you know.</p>