On Mon, May 3, 2010 at 2:06 PM, Tom3030 <[email protected]> wrote: > Do I have to do some fancy threading to update the UI or what? >
Basically? Yup. The gist of it is this: setText does just that - sets the text to be used on the view - it doesn't actually do any drawing. That happens later on in the main thread, after your onCreate call, so you can call setText as many times as you want within a function, nothing but the last call will actually show up during the next draw phase. You will have to split out your loading code into a thread and post updates to the main UI thread with the current progress. Or better yet, use an AsyncTask - this is pretty much what it's for. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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

