How uncheck items in AlertDialog (setMultiChoiceItems)?

The first index in an array is 0, not 1. So this.

The first index in an array is 0, not 1. So this: for(int I = 1; I You need to start with I == 0. I don't know how many items are in your list.

But if you only have 3 items then if (count == 3){ won't ever be true because its only going to check the last two in the array. Also this call: ((AlertDialog) dialog).getListView(). SetItemChecked(which, false); is only going to set 1 item in the list to unchecked.It will be the 3rd one that you click.

So the first two that you click are going to get checked and stay checked. Then when you click on the third one it will get checked for a split second and then uncheck itself.Is that what you are trying to do? Or do you want to uncheck all 3 of them?

Its not very clear which you are trying to do by your question.

Thanks for the reply, I'm starting the index number 1 because I ignore the first item. Yes is what I want ("when you click on the third one it will get checked for a split second and then uncheck itself. ") – Eduardo Teixeira Feb 21 at 16:32 My question is about the command,("((AlertDialog) dialog).getListView().

SetItemChecked(which, false); ") it runs but nothing happens. – Eduardo Teixeira Feb 21 at 16:36.

Seeing Jorgesys answer in this question I realized what was missing in my code, is necessary to change the boolean list too. Selectedwhich = false; ((AlertDialog) dialog).getListView(). SetItemChecked(which, false).

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