title: Action Items not showing in ActionBar with showAsAction="ifRoom"
body: <p>I'm trying to add some Action Items to my Support Action Bar. In my activity, I have also tabs added to the Action Bar.</p>
  
  <p>This is an excerpt of the activity:</p>
  
  <pre><code>public class ShowEmails extends ActionBarActivity implements ShowEmailsFragmentInteractionListener  {
  
      private IMAPClientService service;
      private boolean bound;
  
      private ActionBar ab;
  
      private MailDBHelper mdbhelper;
      private SQLiteDatabase db;
  
      private Intent client_service;
  
      &lt;.........................&gt;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          this.client_service = new Intent(this, IMAPClientService.class);
  
          this.mdbhelper = new MailDBHelper(this.getApplicationContext(), MailDBHelper.MAIL_DB_NAME, null, MailDBHelper.MAIL_DB_VERSION);
          this.db = this.mdbhelper.openWriteable();
  
          this.ab = this.getSupportActionBar();
          this.ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
          this.ab.show();
  
          Tab t = ab.newTab().setText(R.string.all_emails)
                  .setTabListener(new TabListener&lt;ShowEmailsFragment&gt;(this, "all", ShowEmailsFragment.class));
  
          ab.addTab(t);
  
          new LoadTabsInBackground().execute();
      }
  
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.show_emails_bulk_action, menu);
  
          return super.onCreateOptionsMenu(menu);
      }
  }
  </code></pre>
  
  <p>The class <code>LoadTabsInBackground</code> adds some tabs to the ActionBar after doing some database operation.</p>
  
  <p>This is the menu resource I'm inflating:</p>
  
  <pre><code>&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/email_refresh"
          android:orderInCategory="1"
          android:showAsAction="ifRoom"
          android:title="@string/action_refresh"
          android:icon="@drawable/ic_menu_refresh"/&gt;
  
      &lt;item
          android:id="@+id/email_bulk_seen"
          android:orderInCategory="20"
          android:showAsAction="ifRoom"
          android:title="@string/action_seen"
          android:icon="@android:drawable/sym_action_email"/&gt;
  
      &lt;item
          android:id="@+id/email_bulk_delete"
          android:orderInCategory="40"
          android:showAsAction="ifRoom"
          android:title="@string/action_delete"
          android:icon="@android:drawable/ic_menu_delete"/&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>And here is an excerpt from AndroidManifest.xml, where you can sse the theme I'm using is <code>Theme.AppCompat.Light</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="it.dndonline.battleclient4android"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="9"
          android:targetSdkVersion="19" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/Theme.AppCompat.Light" &gt;
  
          &lt;.......................&gt;
  
  
          &lt;activity
              android:name="it.dndonline.battleclient4android.Activities.ShowEmails"
              android:label="@string/title_activity_show_folders"
              android:theme="@style/Theme.AppCompat.Light" &gt;
          &lt;/activity&gt;
  
          &lt;......................................&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Everything seems correct to me, unfortunately, although tabs are loaded correctly, this means that ActionBar is properly working, none of the menu items are loaded in the action bar. Setting the <code>showAsAction</code> value to <code>always</code> doesn't change anything.</p>
  
  <p>I'm testing it on Android 2.3.3.</p>