Android - weird problem with CheckBoxes in custom listview adapters?

Your onClick code is wrong, because after list. Remove(i) you got size = size-1 but you still assume that it's constant. You need to rewrite your delete loop.

Plus you have to realize that, when you do remove and do nothing with your iteration index I you skip 1 item (the one that was situated right after removed one).

Your onClick code is wrong, because after list. Remove(i) you got size = size-1, but you still assume that it's constant. You need to rewrite your delete loop.

Plus you have to realize that, when you do remove and do nothing with your iteration index i, you skip 1 item (the one that was situated right after removed one).

That is still my main error. Any idea? Solution?

– Varundroid Apr 13 at 12:57 Just a guess: try to move icon. NotifyDataSetChanged(); from the loop: for(int I = size-1; I >= 0; i--) { if(icon.itemChecked. Get(i)) { list.

Remove(i); } } icon. NotifyDataSetChanged(); It could invoke getView that will reset your onCheckedChangeListener with new position that could cause a conflict. – ernazm Apr 13 at 13:12 @user639183 na it won't work either coz before you advised I was doing the same so for just debugging purpose I put it inside the loop.

:( – Varundroid Apr 13 at 13:16.

This is weird. Cant get values return. Looks everything is fine.

Cant figure out the problem. Application force closes on Agree button clicked.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions