Your code is wrong in a number of ways. First, the "t = new TextView()" line is pointless. It creates a new textview, does nothing useful with it, and then drops it on the next statement. Just delete it.
You should never sleep in the UI thread. That just freezes the entire app. I'm surprised you didn't get a force close with that. Because Android is an event-oriented system, I wouldn't expect any UI changes to become visible to the user until the event handler (onCreate() in this case) returns. This is why you're not seeing your first change. What you want to do is set your first change, then use the Message/ Handler or Runnable/Handler system to schedule a callback at now+10000 and make the second change in the callback handler. And as others have pointed out, this belongs in the developer or beginner group. -- You received this message because you are subscribed to the Google Groups "Android Discuss" 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-discuss?hl=en.
