As you can see in the stack crawl, this has nothing to do with different threads calling back, but just that calling setProgress() calls onProgressRefresh() to be called during its implementation.
This is actually the normal behavior of the platform, at least as of the 2.0 code I just looked at. (Though the callback will only happen if the progress value is actually different than the current one.) On Sat, Nov 21, 2009 at 12:04 AM, Pieter <[email protected]> wrote: > My understanding is that "almost" all calls are made on the main > dispatch > thread, including the onCreate call. The only exceptions are calls > from specialized > threads like the OpenGL drawing thread. > > This means calls are always sequential, and in particular onCreate and > onProgressChanged > will be called sequentially from the dispatch thread. > > Is it possible that "target" gets reset to null at some other point in > your code? > > On Nov 20, 7:53 pm, jotobjects <[email protected]> wrote: > > On Nov 20, 5:30 am, Don <[email protected]> wrote: > > > > > Anyway, i was able to tidy up the code and remove the bug. But still, > > > there really should be no differences like this on various android > > > devices (unless they are at diffenet firmware versions, of course). > > > > I don't know if you can count on onCreate completing before any other > > code in the activity executes. Does the API guarantee that? > > > > Even minor differences in execution speed or linux multitasking on the > > device could account for this kind of bug showing up on one device and > > not on another. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] 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 [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

