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

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