I'm pretty sure it's been around since 1.0. Now the good news is that there's only one situation in which the bug would happen. For it to happen you would need to have a thread call one of the post method while the UI thread is removing the View from its parent.
On Tue, Aug 9, 2011 at 5:15 PM, joebowbeer <joe.bowb...@gmail.com> wrote: > Thanks for the info, Romain. > > Fixed in 3.0? Do you know in which platform version this bug first > appeared? My searches didn't locate a previous bug report -- but my > apps did :-( > > I'll revise my message: The View.post* methods are meant to be thread- > safe, but they aren't prior to 3.0 > > Joe > > On Aug 9, 5:00 pm, joebowbeer <joe.bowb...@gmail.com> wrote: > > Correction: As the title indicates, I meant to write "View.post*" > > methods... > > > > On Aug 9, 4:48 pm, joebowbeer <joe.bowb...@gmail.com> wrote: > > > > > > > I filed a bug regarding inconsistent documentation of the Thread.post* > > > methods: > > > > >http://code.google.com/p/android/issues/detail?id=19143 > > > > > I'm fine with always using a Handler, as the View documentation > > > stipulates, but the rest of the View documentation is scattered with > > > error-prone advise to call the post* methods from non-UI threads -- > > > which has led to NPEs in my own experience. > > > > > So I wanted to post this to the list as well as file a bug. > > -- > 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 > -- Romain Guy Android framework engineer romain...@android.com -- 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