On Thursday, March 27, 2014 2:04:24 AM UTC-7, Yuvi wrote:
>
> You have to create your Handler in separate thread.
>

That's not really true.  You can use the Handler constructor that takes a 
Looper so that its work gets scheduled the thread represented by that 
Looper.  For example, you could create a Handler against the main thread's 
looper from any other thread like this:

new Handler(Looper.getMainLooper())

Now that handler will schedule work on the main thread.

Doug

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to