Hello,

I am using a listActivity and I need to know the id of the item selected
using long press by the user, in order to do stuff in the context menu.
I have tried the following:

          menuItemLongPressedID = getListView().getSelectedItemId();
          menuItemLongPressedIS = getListView().getSelectedItemPosition();

in onKeyDown and onTouchEvent but the id is always returned -1.

any ideas?

any help would be appreciated!

cheers!
Yorgos

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to