title: How to add menu item to action bar?
body: <p>I am trying to add menu item to action bar.
  <strong>menu/main.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" &gt;
  
      &lt;item
          android:id="@+id/change_language"
          android:showAsAction="always"
          android:title="JP"&gt;
      &lt;/item&gt;
      &lt;item
          android:id="@+id/lists"
          android:icon="@android:drawable/ic_menu_agenda"
          android:showAsAction="always"
          android:title="Lists"&gt;
      &lt;/item&gt;
      &lt;item
          android:id="@+id/collections"
          android:icon="@android:drawable/ic_menu_star"
          android:showAsAction="ifRoom"
          android:title="Collections"&gt;
      &lt;/item&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>change_language, lists</strong> items are working perfectly. Menu item "collections" is not showing</p>
  
  <p>MainActivity.java</p>
  
  <pre><code>@Override
  public boolean onPrepareOptionsMenu(Menu menu) {
      super.onPrepareOptionsMenu(menu);
      menu.findItem(R.id.change_language).setTitle("JP");
      return true;
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  </code></pre>
  
  <p>It is not giving any error. I have checked R.java. There is no reference to "collections". Intellicence also not giving hints while writing "R.id.   "
  How to add menu item to action bar? Maybe this is because, I published app to Google Play. However, I have set Debuggable to 'true'.</p>