title: Android ActionBar Compatibility
body: <p>I was going through this sample package which Google has provided with it's sdk. I tried changing the api level to 7 and observed that there were many unresolved errors in the project.</p>
  
  <p>I'm listing a few here:</p>
  
  <ol>
  <li>ICE_CREAM_SANDWICH cannot be resolved or is not a field (ActionBarActivity.java)</li>
  <li>R cannot be resolved to a variable (This is probably due to the fact my xml also contains errors)</li>
  <li>SHOW_AS_ACTION_IF_ROOM cannot be resolved or is not a field (ActionBarHelperBase.java)</li>
  <li>The method setActionView(View) is undefined for the type MenuItem (ActionBarHelperHoneycomb.java)</li>
  <li>The method getActionBar() is undefined for the type Activity (ActionBarHelperICS.java)</li>
  <li>The import android.view.ActionProvider cannot be resolved (SimpleMenuItem.java)</li>
  <li>in res/values-v13/styles.xml - error: Error retrieving parent for item: No resource found that matches the given name 'android:style/
  TextAppearance.Holo.Widget.ActionBar.Title'.</li>
  <li>error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'. (in res/values-v11/styles.xml)</li>
  </ol>
  
  <p>Any idea how to get rid of these errors? Basically I'm targeting android devices 2.x and later. Does using actionbarsherlock is another alternative? I read here on some post that action bar compatibility package works on 2.x android devices as well.</p>