Emery wrote: > I posted this before but never got an answer. I have data coming in on > a separate thread and I want to add the items to a ListView > asynchronously as the items are received (I do not want to block the > UI thread). If I try to add the items from the other thread I get a > CalledFromWrongThreadException "Only the original thread that created > a view hierarchy can touch its views.". > > How can I do this? Thanks!
Use a Handler. Or View#post(). Or View#postDelayed(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

