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())
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
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 =
@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-
4 matches
Mail list logo