So I've experienced this in 2 separate applications. After adding adding ActionBarSherlock to the project and adding an action bar to the activity, the onContextItemSelected never gets fired when an item is clicked from a long press context menu. I've tried a bunch of different things from my various googlings, but nothing seems to work. Any thoughts?
ListView list = (ListView) findViewById(R.id.scroll_list);
list.setAdapter(this.custom_adapter);
registerForContextMenu(list);
list.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
menu.add(0, CONTEXT_EDIT, 0, "Edit");
menu.add(0, CONTEXT_DELETE, 1, "Delete");
}
});
public boolean onContextItemSelected(MenuItem item) {
Log.d("debug", "onContextItemSelected-item.getItemId():" + item.getItemId());
}