Yep, it's easier to take advantage of Handler to deal with a lot of the threading grunginess for you.
On Wed, Mar 11, 2009 at 4:13 PM, Timo Bruck <timot...@gmail.com> wrote: > > Answering my own question, I think the answer is that Dianne's way is > better than mine. > > With Dianne's way, if the thread completes while the Activity is being > destroyed/created, there's still a Handler around to post a message > to. When the new Activity is created, it'll get the message that was > queued. > > With my way, if the thread completes while the Activity is in the > destroy/create state, it has no Handler to post to, and the message > will never get sent. > > -Timo > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---