I need an example or a tutorial on how to add menu items with action bar sherlock
When I use the simple menu with the imports
import android.view.Menu;
I used @StenaviN 's answer above but ran into problems with onContextItemSelected. This post solved it for me.
Basically, you just have to use
@Override
public boolean onContextItemSelected(android.view.MenuItem item) {
/* ... */
}
instead of
@Override
public boolean onContextItemSelected(MenuItem item) {
/* ... */
}