title: Cannot get ic_action_search.png to show in Action Bar
body: <p>I am working through the <a href="https://developer.android.com/training/basics/actionbar/adding-buttons.html" rel="nofollow">Android tutorial</a> and cannot get my search icon to appear in my action bar.</p>
  
  <p>I'm not sure what I am missing, but am new so I don't know where to look.</p>
  
  <p>This is in my <code>main_activity_actions.xml</code></p>
  
  <pre><code>&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="always" /&gt;
  
      &lt;!--  Settings, hsould awlays be in teh overflow --&gt;
      &lt;item android:id="@+id/action_settings"
          android:title="@string/action_settings"
          android:showAsAction="never" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>This is in my <code>MainActivity.java</code> file:</p>
  
  <pre><code>@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);
  }
  </code></pre>
  
  <p>I have downloaded the <code>ic_action_search.png</code> files and placed them into the following respective directories:</p>
  
  <pre><code>/home/user/workspace/MyFirstApp/res/drawable-hdpi
  /home/user/workspace/MyFirstApp/res/drawable-mdpi
  /home/user/workspace/MyFirstApp/res/drawable-xhdpi
  /home/user/workspace/MyFirstApp/res/drawable-xxhdpi
  </code></pre>
  
  <p>When I run the application via Eclipse, I do see the following error in the logcat console, but I'm not sure if they are referring to the png files or not?</p>
  
  <pre><code>&lt;snip&gt;
  05-11 21:51:17.823: I/Adreno200-EGLSUB(32725): &lt;ConfigWindowMatch:2087&gt;: Format RGBA_8888.
  05-11 21:51:17.833: D/memalloc(32725): ion: Mapped buffer base:0x506af000 size:1949696 offset:0 fd:59
  05-11 21:51:17.833: E/(32725): Can't open file for reading
  05-11 21:51:17.833: E/(32725): Can't open file for reading
  05-11 21:51:17.843: D/OpenGLRenderer(32725): Enabling debug mode 0
  &lt;snip&gt;
  </code></pre>
  
  <p>Where else can I check to determine why the search icon will not appear in the Action Bar?</p>
  
  <p>** EDIT **</p>
  
  <p>Following jay's recommendation below I've changed the <code>main_activity_actions.xml</code> to the following.  This puts the string value into the Action bar, but not the icon.  Does android know to look in the image folders automatically?</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" 
          xmlns:yourapp="http://schemas.android.com/apk/res-auto"&gt;
      &lt;!--  Search, should appear as action button --&gt;
      &lt;item android:id="@+id/action_search"
          yourapp:icon="@drawable/ic_action_search"
          android:title="@string/action_search"
          yourapp:showAsAction="always" /&gt;
  
      &lt;!--  Settings, hsould awlays be in teh overflow --&gt;
      &lt;item android:id="@+id/action_settings"
          android:title="@string/action_settings"
          android:showAsAction="never" /&gt;
  &lt;/menu&gt;
  </code></pre>