• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SparseBooleanArray getCheckedItemPositions()

According to the android API ref, this ds maps integers to booleans. So I thought getCheckedItemPositions() would return what looks like an array. Each array index would correspond to the index in the listview. If the value at that index is true, the checkbox in the listview at that same index is selected. If it's false, it means that corresponding checkbox is not selected.

The reason I ask is because my listview shows up fine, but when I select some checkboxes, I step over my code and notice the SparseBooleanArray returned by getCheckedItemPositions() is filled with only false values.
 
Hi mobileNewb, and welcome to Android Forums :)

I've moved your thread into our Application Development subforum where it should better attract attention from fellow developers. Please let me know if you have any questions or if I can do anything else to help out. :thumbup
 
Back
Top Bottom