1. Check out our companion app, Forums for Android! Download from Google Play

CheckedTextView Bug?

Discussion in 'Application Development' started by Dorin, Jun 18, 2010.

  1. Dorin

    Dorin New Member
    Thread Starter

    Jun 15, 2010

    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


  2. Boogs

    Boogs Well-Known Member

    Apr 6, 2010
    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.

Share This Page