title: ActionBar Sherlock Menu Item OnClick
body: <p>I am new to using the Sherlock ActionBar and I have make it run in my app and I have a item in the actionbar to but I don't know how to make the item do something when it's clicked all I got is this.</p>
  
  <pre><code>public boolean onCreateOptionsMenu(Menu menu) {
  
      menu.add("Folder")
          .setIcon(R.drawable.folder)
          .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
  
      return true;
  }
  
  
  public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
          //What do i write here?
      return true;
  </code></pre>
  
  <p>I hope you understand what I mean :)</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Hey I made it work with a little help from this <a href="https://stackoverflow.com/questions/10278952/sherlockactionbar-adding-a-button-to-the-actionbar">thread</a> that I found and I made a few changes and here is the code! :DDD </p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
     com.actionbarsherlock.view.MenuInflater inflater = getSupportMenuInflater();
     inflater.inflate(R.menu.menu, menu);
     return super.onCreateOptionsMenu(menu);
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle item selection
      switch (item.getItemId()) {
          case R.id.search:
              finish();
              return true;
          case R.id.new_folder:
              finish();
              return true;
          default:
              return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>