I\'ve several buttons registered for context menu
how do I know which button was clicked for the menu to appear?
below is the pseudocode that i\'ll be using.
try this...
@Override public boolean onContextItemSelected(MenuItem item) { if(item.getItemId()==SEND_AS_TEXT) { //code for send text } else if(item.getItemId()==SEND_AS_IMAGE) { //code for send image } return super.onContextItemSelected(item); }