title: error with using android and SHOWasAction attribute to make the menu bar appear
body: <p>i need to have a menu or an action bar  that must be display when the user  use the application  but the problem is that the menu items do not show  only ofter i click the menu button on the emulator   can anyone help me ????</p>
  
  <h1>test.java</h1>
  
  <pre><code>package com.example.test;
  
  import com.example.test.R;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  
  public class test extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_test);
  
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main_activity_menu, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <h1>mani_activity_menu.xml</h1>
  
  <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/menu_settings"
          android:orderInCategory="1"
          android:showAsAction="always"
          android:title="settings"/&gt;
      &lt;item
          android:id="@+id/twitter"
          android:orderInCategory="2"
          android:showAsAction="always"
          android:title="twitter"/&gt;
      &lt;item
          android:id="@+id/facebook"
          android:orderInCategory="3"
          android:showAsAction="always"
          android:title="facebook"/&gt;
      &lt;item 
          android:id="@+id/refresh"
          android:title="refresh"
          android:showAsAction="always"
          android:orderInCategory="4"
          /&gt;
  
  
  &lt;/menu&gt;
  </code></pre>
  
  <h1>Manifest</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.test"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="10"
          android:targetSdkVersion="15" /&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".test"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <h1>style.xml</h1>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!--
          Base application theme, dependent on API level. This theme is replaced
          by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
      --&gt;
      &lt;style name="AppBaseTheme" parent="android:Theme.Light"&gt;
          &lt;!--
              Theme customizations available in newer API levels can go in
              res/values-vXX/styles.xml, while customizations related to
              backward-compatibility can go here.
          --&gt;
      &lt;/style&gt;
  
      &lt;!-- Application theme. --&gt;
      &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
          &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>