On Tue, Sep 7, 2010 at 3:13 PM, Bret Foreman <bret.fore...@gmail.com> wrote: > That's not far from what I'm doing already. I'm creating the ListView > and ArrayAdapter and calling setListAdapter in the main thread. Then I > fill a separate ArrayList in the AsyncTask.doInBackground. Then, in > AsyncTask.onPostExecute which runs in the main thread, I fill the > ArrayAdapter from the ArrayList built in the background thread. Then I > call ArrayAdapter.notifyDataSetChanged in AsyncTask.onPostExecute. > Sometime after this I get the Resource Not Found exception.
FWIW, my EndlessAdapter does data modifications on a background thread. The demo project uses an underlying ArrayAdapter, and it does not exhibit the issues you are describing: http://github.com/commonsguy/cwac-endless -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en