Re: [android-developers] When to use Handler

2011-01-31 Thread Kostya Vasilyev
Dusan, For your code to work, do two things: - Take out the Looper stuff from your worker thread. Looper.loop() goes into a loop that de-queues and processes messages until someone calls quit(). In your code, it keeps running forever after parsing is finished, I don't think you intended

[android-developers] When to use Handler

2011-01-30 Thread skrat
I have following code http://pastie.org/1513146, and while setProgress method works, onParsed doesn't. onParsed has to be called from Handler message because it accesses progressbar view from different thread. setProgress is called from different thread as well (thread running