I have a list View with some clients. In this listView i click in a client and appear a contextMenu.
How i can get the id of the contact that this client have in contactscontract?????
public boolean onContextItemSelected(MenuItem item){
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)item.getMenuInfo();
----> info.position (I get the position of the item click in the list) ok
Get id of contact in contactsContract application
----> info.id???
----> cursorAdapter.getItemId(info.position))
I think that neither of this options works.....
Anyone can help i clarify this problem