But what if you're using a custom ArrayAdapter? Also, I *think* AsyncTask is meant for one shot type tasks. A user of this app may update this listview multiple times.
But here is something I've discovered: if I change the orientation of the screen, the list is properly updated. Question: how can I mimic that screen orientation change? What is actually happening when you flip the phone? It's restarting that activity right? Another question (I'm hitting this problem from multiple angles), how do you tell is a thread has ended? If I can tell when the thread ends I can do this listview update in the main thread -- which I know works. Ken On Feb 18, 1:33 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Ken H wrote: > > I wasn't able to get the AsyncTask to work (although I have used it > > successfully in another app). > > Here's an example of using AsyncTask to asynchronously populate a ListView: > > http://github.com/commonsguy/cw-android/tree/master/Threads/Asyncer/ > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Training:http://commonsware.com/training -- 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