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

Apps CheckedTextView Bug?

Dorin

Lurker
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
 
Hmm... I haven't come across that problem. And I've used CheckedTextView a lot in my current Android application. Can you post your code which retrieves the checked boxes? That might help diagnose the problem a little bit.
 
Back
Top Bottom