ccfrazier2 wrote: > Thanks so much for the replies. Maybe I've been doing this wrong all > along, I have > 6 activites that use this same methodology, but YES, I guess this is > the array used by > the adapter (code below shows that is is). > > In my background thread if I add < 100 elements to the array, > everything works great. If > I add more than 300 though I get the crash. Is this capacity related.
It is background thread related. Do not modify the underlying ArrayList from a background thread. > How are we supposed to populate an array list associated with an array > adapter when we are > grabbing stuff out of the database in a background thread? Do we just > do the database read in > the background and then process the results from the cursors in the UI > thread? That is one possibility. Or, dump the ArrayAdapter/ArrayList and use a CursorAdapter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

