title: onCreateOptionsMenu not called when starting new activity
body: <p>My <code>onCreateOptionsMenu</code> works only in my MainActivity and when I try to put another <code>onCreateOptionsMenu</code> in another activity to inflate a different menu it does not display my menu bar (note that I have it setup exactly the same in both activities).</p>
  
  <p>I do not get any errors, it just does not display my menu bar on my secondary activity.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState){
      super.onCreate(savedInstanceState);
      setContentView(R.layout.expanded_view_layout);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.menu_main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      //noinspection SimplifiableIfStatement
      int id = item.getItemId();
      if (id == R.id.action_back) {
          finish();
      }
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p>Also note that I changed <code>getMenuInflater()</code> to <code>super.getMenuInflater()</code> and got same result.</p>