title: Action Bar not showing in 4.2.2
body: <blockquote>
    <p><strong>SOLUTION:</strong> It was a problem with the image search icon. Android did not find the image for the search action , I had not added them in all the
    res-folders , it started to show after that...</p>
  </blockquote>
  
  <p>I am trying to add the action bar to a app and I am following the basic app tutorial shown in the <a href="http://developer.android.com/training/basics/actionbar/adding-buttons.html" rel="nofollow noreferrer">Google Developer Website</a></p>
  
  <p>I have written the following code.</p>
  
  <blockquote>
    <p><strong>MainActivity</strong></p>
  </blockquote>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
      public void openSearch(){
  
          System.out.println("TEST SEARCH");
  
      }
      public void openSettings(){
  
          System.out.println("TEST SETTINGS");
  
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          MenuInflater inflater = getMenuInflater();
          inflater.inflate(R.menu.main_activity_actions, menu);
          return super.onCreateOptionsMenu(menu);
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle presses on the action bar items
          switch (item.getItemId()) {
              case R.id.action_search:
                  openSearch();
                  return true;
              case R.id.action_settings:
                  openSettings();
                  return true;
              default:
                  return super.onOptionsItemSelected(item);
          }
      }
  
  }
  </code></pre>
  
  <blockquote>
    <p><strong>res/menu/main_activity_actions.xml</strong></p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;!-- Search, should appear as action button --&gt;
      &lt;item android:id="@+id/action_search"
            android:icon="@drawable/ic_action_search"
            android:title="@string/action_search"
            android:showAsAction="ifRoom" /&gt;
      &lt;!-- Settings, should always be in the overflow --&gt;
      &lt;item android:id="@+id/action_settings"
            android:title="@string/action_settings"
            android:showAsAction="never" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <blockquote>
    <p><strong>AndroidManifest.xml</strong></p>
  </blockquote>
  
  <p>
  </p>
  
  <pre><code>&lt;uses-sdk android:minSdkVersion="7"  android:targetSdkVersion="18" /&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="com.sample.actionbarsample.MainActivity"
          android:label="@string/app_name" 
          android:theme="@style/Theme.AppCompat" 
          &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;
  </code></pre>
  
  <p></p>
  
  <p>But instead of a Action bar like this </p>
  
  <p><img src="https://i.stack.imgur.com/DAceX.png" alt="enter image description here"></p>
  
  <p>I get A options menu. Which shows up when I press the menu button while running the app. </p>
  
  <p><img src="https://i.stack.imgur.com/VDRUk.png" alt="Screen Shot on Emulator running 4.2.2"></p>
  
  <p><strong><em>What is that I am missing out from the tutorial, Or is there something wrong in the code?</em></strong></p>
  
  <blockquote>
    <p><strong>EDIT</strong></p>
  </blockquote>
  
  <p>After doing what <strong>beworker</strong> asked me I got this result, still missing the search box.</p>
  
  <p><img src="https://i.stack.imgur.com/onq6h.png" alt="enter image description here"></p>