[android-developers] Re: contextmenu getselectedtestid

2008-11-29 Thread Protocol-X
this is my sample code @Override public boolean onContextItemSelected(MenuItem item) { final AdapterView.AdapterContextMenuInfo acmi = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); long clickedId = (long) acmi.id; switch (item.getItemId())

[android-developers] Re: contextmenu getselectedtestid

2008-11-29 Thread Protocol-X
I figured it out kind of ... It seems since i was using the same method in moth the onItemSelected and the onContextItemSelected the onItemSelected was taking ownership of the method instead of listening to the onContextItemSelected... never encountered this issue before has anyone else? On Nov

[android-developers] Re: contextmenu getselectedtestid

2008-11-28 Thread Protocol-X
Thanks for the reply. I tried your method but now instead of 0 every time i get 6 On Nov 26, 1:58 pm, G [EMAIL PROTECTED] wrote: @Override public boolean onContextItemSelected(MenuItem item) {         // TODO Auto-generated method stub         AdapterContextMenuInfo acmi =

[android-developers] Re: contextmenu getselectedtestid

2008-11-26 Thread G
@Override public boolean onContextItemSelected(MenuItem item) { // TODO Auto-generated method stub AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) item.getMenuInfo(); long clickedId = acmi.id; } In the above case, clickedId is the id of the row that was long-