The app has a ListView with multiple-selection enabled, in the UI it works as expected. But when I read the values out using this code:
Log.
I too used the solution gyller suggests that involves "initiating" the listview
ListView lv = getListView(); for (int i = 0; i < lv.getCount(); i++) { lv.setItemChecked(i, false); }
before calling getCheckItemPositions(), and it stopped producing erroneous results!