I do not think this does not answer the question posed, but Sam took care of it. I thought I would post this because there seems to be some confusion regarding the OPs.
The following is a method onListItemClickfrom an action that contains a list created using a custom cursor adapter:
@Override
public void onListItemClick(ListView l, View v, int position, long id) {
}
long id - , ( ). getItemId.
getItemId ( ), - , . , .
, , , .. ...