title: Android: How to add menu items to a ActionBarSherlock MapActivity
body: <p>I am using <a href="https://github.com/JakeWharton/ActionBarSherlock" rel="nofollow">ActionBarSherlock</a> with <a href="https://github.com/JakeWharton/ActionBarSherlock-Plugin-Maps" rel="nofollow">ActionBarSherlock-Plugin-Maps</a> in my project. I would like to add menu items to the actionbar of my <code>MapActivity</code> as it is possible for a standard activity that inherits from <code>SherlockActivity</code>. The following code sample shows how to create an icon.</p>
  
  <pre><code>public class CustomSherlockActivity extends SherlockActivity {
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          menu.add("Save")
              .setIcon(R.drawable.ic_compose)
              .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
          return true;
      }
  </code></pre>
  
  <p>However, I can <strong>not</strong> use the same method in my <code>MapActivity</code> that extends <code>SherlockMapActivity</code>. The method <code>SherlockMapActivity#onCreateOptionsMenu</code> is defined <code>final</code>. Here is the <a href="https://github.com/JakeWharton/ActionBarSherlock-Plugin-Maps/blob/master/plugin/src/main/java/com/actionbarsherlock/app/SherlockMapActivity.java" rel="nofollow">source code of <code>SherlockMapActivity</code></a>. How then, am I supposed to add actions to the actionbar?</p>