Yes, it's the same message loop - the UI thread's message loop - which executes all Activity callbacks.

A handler created with "new Handler()" from an activty's callback such as onCreate will be connected to the same message loop as well.

-- K

On 05/22/2012 07:00 PM, Greenhand wrote:
But if we use an Activity reference directly (i.e. call a method in
the Activity), will it also send a message to the message loop? I am
afraid that the method called by Activity reference and the
configuration change may happen concurrently.

Does the message loop mentioned here is the same as the one which will
be binded when we new Handler() in an Activity?

On 5月22日, 下午9時45分, Kostya Vasilyev<[email protected]>  wrote:
The framework processes the entire configuration change within one UI
message loop message.

-- K


--
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