Tuesday, May 31, 2011

[android-developers] Re: Two-way listeners/observers

Oh, I didn't know that. The API docs do not mention that. Thanks for
the info!

On May 27, 2:59 pm, Kostya Vasilyev <kmans...@gmail.com> wrote:
> It's just a shortcut:
>
>     public final void runOnUiThread(Runnable action) {
>         if (Thread.currentThread() != mUiThread) {
>             mHandler.post(action);
>         } else {
>             action.run();
>         }
>     }
> to post a Runnable to the UI thread's handler.
>
> -- Kostya
>

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment