On Tue, Oct 27, 2009 at 11:36 AM, szabolcs <szabolcs.vr...@gmail.com> wrote:
> > Um. Don't do that. AsyncTask and Looper are two fundamentally different > > threading models, which are not compatible. > I will assume not compatible means not possible for now and will try > to figure out why later (time permitting). > Actually it mean the two threading models are not compatible, so you can't use these together. Looper expects to to own the thread that you associate it with, while AsyncTask owns the thread it creates for you to run in the background. They thus conflict with each other, and can't be used together. > I would have preferred using AsyncTask only because its GUI callbacks > (onProgressUpdate(), etc.) are sooo convenient/easy to read. Kudos to > whoever came up with it. > Thanks Romain Guy. :) -- 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, and so won't reply to such e-mails. 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 -~----------~----~----~----~------~----~------~--~---