Hello,

Am I correct in assuming that any callbacks of the AsyncTask that are
run on the UI thread (e.g. onPostExecute) are 'queued' during a screen
rotation?

Example:
1. an AsyncTask is executed
2. a screen rotation is initiated
3a. AsyncTask's doInBackground() finishes, or
3b. AsyncTask's publishProgress() is called before the rotation is
done
--- now what happens here? is it
4. screen rotation is completed before the 'pending'
AsyncTask.onPostExecute/onProgressUpdate is run?

I assumed so, since looking at DDMS, it seems like the rotation does
NOT create a new UI thread, in which case any calls to the UI must be
stalled while the UI thread is busy completing the rotation, right?

It would be great if this was true, since it would save me from having
to do a bunch of synchronization work for posting back from AsyncTasks
(I am keeping the tasks running during a rotation) - at least so I
think..

Thank you for any tips on this,

-szabolcs

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to