I’ve a ListView populated with a SimpleCursorAdapter (that’s populated with _id and personName). I know the _id which I want to select but the function setItemChecked(pos, boolean) uses position instead of _id.
How can I know the position in the Cursor within the _id 3 for example?
Get the
positionof the item which has the_idyou are looking for. Then use thatpositionin your call tosetItemChecked(pos, boolean).