[android-beginners] Re: Change text in textview dynamiclly

2009-09-08 Thread Justin Anderson
Sounds like a case where you are going to want to have separate threads... one for the UI and one for establishing the socket connection. The dev guide mentions when this should be done and I believe it also addresses how to create multiple threads. Thanks, ---

[android-beginners] Re: Change text in textview dynamiclly

2009-09-08 Thread Oskar
How would multiple threads help us in this matter? setText() does not seem to write out anything to display until the currently running method has ended. Anybody who has any example code? Thanks! On Sep 9, 6:06 am, Justin Anderson wrote: > Sounds like a case where you are going to want to ha

[android-beginners] Re: Change text in textview dynamiclly

2009-09-09 Thread Justin Anderson
Have your onCreate do two things: 1) Set an initial value for the TextView 2) Spawn another thread to establish the connection onCreate will then finish immediately after spawning the new thread, allowing the initial value to be displayed. You can then set up a Handler for the thread to post back