I'm creating an Android app with a ListView and I'm using this line:
SparseBooleanArray checkedPositions = list.getCheckedItemPositions();
Then I want to iterate over the array but only if there is at least a single value which is true in the checkedPositions array.
Can something like this be done?
You cannot do that. But what you could do is to create another method which does that for you.