I have onItemClick listener, and I'd like to use the id
value. But it has the same value as position
.
public void onItemClick(AdapterView<?> a, View view, int position, long id) {
DBh.something(id);
}
I'm using a custom ArrayAdapter similar to the one described here: onItemClickListener with custom adapter and listview
I also tried to use row.setId(), but its int not long.