[android-developers] Re: java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-11-17 Thread WoodManEXP
I have run into this, pretty much exactly as you describe it, starting with Android 1.6, but not before. Get any ideas about what's going on? On Oct 10, 11:22 pm, pawpaw17 wrote: > I'm getting an unhandled exception in my class that fills an > arrayadapter from items in a database: > > 10-11 04:0

[android-developers] Re: java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-10-21 Thread jsdf
pawpaw17, Any luck with this? Has anyone else come up with solutions for this? We are experiencing similar (sporadic) results. Thanks, jsdf On Oct 10, 11:22 pm, pawpaw17 wrote: > I'm getting an unhandled exception in my class that fills an > arrayadapter from items in a database: > > 10-11 04:0

[android-developers] Re: java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-10-22 Thread jsdf
Would using a CursorAdapter tied to a database be a solution to this? When the database changes, the cursor can auto-requery the database (per the constructor's argument). Will this prevent IlllegalStateExceptions? On Oct 21, 9:34 pm, jsdf wrote: > pawpaw17, > Any luck with this? > Has anyone el

Re: [android-developers] Re: java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-11-18 Thread Romain Guy
>I don't seem to be manipulating it at all in the background > thread; only the array list it is > connected to. That's your problem right here. You cannot change the adapter's data from outside the UI thread. On Tue, Nov 17, 2009 at 7:38 PM, WoodManEXP wrote: > I have run into this, pretty muc