Using contextmenu with listview in android
To get the item from the ListView item selected refer to ContextMenuInfo object (see last implemented method below). Full solution as follows: 1) register ListView for context menu in ListActivity class @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // … getListView().setAdapter(mAdapter); registerForContextMenu(getListView()); } 1a) if you have complex View on your list you might need … Read more