[android-developers] Re: thread wait in android

2012-11-30 Thread Piren
whaaa... thats really going against all the basic android fundamentals. .. first, you never ever stop/hault/wait/busy-wait/do long processes on the UI (what you called Main) thread. You do that, the app is stuck and eventually errors out to the user (an ANR). Second, you shouldn't be creating

[android-developers] Re: thread wait in android

2012-11-30 Thread Piren
just noticed that you mentioned AsyncTask and that you wont use it - Well, you should. what you're doing is WRONG. If you're that inclined on doing things the wrong way, at least remove your wait() (there's no need for that) and just post to the UI thread once the thread is done. On Friday,