I am working with a listview where the primary key is text, not an integer. It’s actually a unique url
It works so far, I even managed to alias the url column to _id in the rawQuery() and the listview accepts it happily.
But now I have run into a problem!
onListItemClick() returns the id as a long so when I click on an item I just get 0 no matter what.
Is it possible to obtain the clicked id somehow else?
It should be possible to add an field _id to your db. Other wise this may work for you:
This solution won’t work if you use filtering on the Adapter like in this question. onListItemClick will report the position after the filtering.