[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread Akshay Goel
I found the answer. http://stackoverflow.com/questions/5067641/how-uncheck-items-in-alertdialog-setmultichoiceitems Actually the boolean array that is passed initially also has to be modified. Thanks! On Apr 13, 10:21 pm, Nasif Noorudeen wrote: > you ahve to use onch > eckchanedListener > > >

Re: [android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread Nasif Noorudeen
you ahve to use onch eckchanedListener On Wed, Apr 13, 2011 at 10:31 PM, Akshay Goel wrote: > OnCreate of what? The dialog? I want to uncheck the item as soon as > the user checks All, without dismissing the dialog. > > Thanks, > Akshay > > On Apr 13, 5:44 pm, harsh chandel wrote: > > write the

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread Akshay Goel
OnCreate of what? The dialog? I want to uncheck the item as soon as the user checks All, without dismissing the dialog. Thanks, Akshay On Apr 13, 5:44 pm, harsh chandel wrote: > write the setitemchecked method withinin oncreate method. > > On Apr 13, 9:56 am, Akshay Goel wrote: > > > > > But I

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread harsh chandel
write the setitemchecked method withinin oncreate method. On Apr 13, 9:56 am, Akshay Goel wrote: > But I am manipulating the data by calling setItemChecked(). When I > said updating the UI, I meant updating data that results in refreshing/ > changing the UI. > > Thanks, > Akshay > > On Apr 12, 10

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread lbendlin
by calling setItemChecked() you are updating the UI, the data destination. What if "someone" at the same time changes the data at the source? Then your UI is out of sync with your data storage. Treat the UI as a one way system - it should only render a representation of your data model, but shou

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-12 Thread Akshay Goel
But I am manipulating the data by calling setItemChecked(). When I said updating the UI, I meant updating data that results in refreshing/ changing the UI. Thanks, Akshay On Apr 12, 10:32 pm, lbendlin wrote: > notifyDataSetChange sounds like the best solution, but for that you need to > actually

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-12 Thread lbendlin
notifyDataSetChange sounds like the best solution, but for that you need to actually change the data set, not the UI. So you would need to manipulate the "checked" flag in the data. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post