I\'d like to clear selected items when the total came to three items selected, I am doing as follows but is not working ...
AlertDialog.Builder builder = new
Seeing Jorgesys answer in this question I realized what was missing in my code, is necessary to change the boolean list too.
selected[which] = false; ((AlertDialog) dialog).getListView().setItemChecked(which, false);