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

Apps CheckedTextView Bug?

Dorin

Lurker
Jun 15, 2010
1
0
Hi,

I am using the multiple choice selection for a list view in android.

The problem is: the checked items returned by the
getListView().getCheckedItemPositions(); call do not work, i.e. the first call is correct but subsequent calls for a set of items that has previously selected items UNSELECTED are returned with all the original selectrions together with the new ones.

More clearly:
first call: items 1 3 5 selected
result correct: 1 3 5 positions selected
second call: items 1 2 5
result incorrect: 1 2 3 5 positions selected

Seeing as there is NO documentation for CheckedTextView and relatives there is either something that I am missing, (such as a flush call?) or the implementation is buggy/inconsistent.

Anybody know what's going on or come accross this?
Thanks for the help
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones