If you created ListActivity(which has ListViewin it), the method onListItemClick()is called every time an entry in the list is clicked. This method has a parameter long idthat contains the identifier of your selected item.
, SQLite ( auto_increment). ListActivity SimpleCursorAdapter, _id ( ID- , AS). , .
, , 12, _id. ListView, onListItemClick() -method id 12.
, (, ).