AsyncTask makes it easy.

On Jul 7, 2010 1:17 PM, "Viktor Linder" <[email protected]> wrote:

Hi! I have the following problem: My app has a thread that updates the
game state. The app needs to make a change to the state of the View
object, triggered by this thread. The documentation for View states
that it should only be modified from the UI thread, and that a Handler
should be used to place and handle events.

Yet, there is a function post() in View where I can post a Runnable
object that will execute in the UI thread without involvement of
Handler. Can I not call this function from threads other than the UI
thread??

I'm confused!

Best regards,
Viktor Linder

--
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]<android-developers%[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 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

Reply via email to