Hi everyone,

I have a list using a customized BaseAdapter. When one element of the
list is hit during a long time, a contextual menu appears. I want to
use this one to delete or edit the selected item but I don't know how
to get id or anything else that could help me.

I tried getListView.getSelectedItem() thinking that it will give me
the object returned by the method getItem(int position) inherited in
my customized BaseAdapter. I got null.
When I tried getSelectedItemId(), I got -1.

Does someone have a solution?

Thanks a lot,
Polo

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

Reply via email to