[android-developers] Re: Resetting checkboxes in a dialog with .setMultiChoiceItems()

2009-04-27 Thread Glen Humphrey
You can override onPrepareDialog to reset the checkboxes. On Apr 9, 7:16 am, DavidG dgu...@gmail.com wrote: I'd like to have a dialog box which prompts the user to select from various checkboxes, then confirm Ok or Cancel. I have this working, but my only issue is the dialog always retains

[android-developers] Re: Resetting checkboxes in a dialog with .setMultiChoiceItems()

2009-04-27 Thread Anh Khoa Nguyen Pham
Hi, Actually, dialog remembers previous state is good but it always does even though you press OK button or CANCEL button. When creating a dialog, i use an array to store checkbutton's states. So when user presses CANCEL, i do not update this state array. Ex: At first time, when i create dialog, i

[android-developers] Re: Resetting checkboxes in a dialog with .setMultiChoiceItems()

2009-04-26 Thread npak...@gmail.com
Hi DavidG, Now, I meet the same problem as you. Did you solve it? If yes, please share your way with me. Thanks, NPAK On Apr 9, 9:16 pm, DavidG dgu...@gmail.com wrote: I'd like to have a dialog box which prompts the user to select from various checkboxes, then confirm Ok or Cancel. I have