I\'ve made my own custom adapter extended from BaseAdapter to show a listview and so on...
I want it to support single and multi selection, so it must have stable id
Override hasStableIds to return true.
Also the data on your adapter must either override hashCode() or has some kind of id field to be returned on getItemId.
hashCode()
getItemId