As state in my original post, this simplified Activity mimics some behavior in my application: a Bitmap is rendered in a non-ui thread, while the user interacts with the UI, producing an ANR on the Samsung Note, but not on any other device. The infinite loop helps to demonstrate this behavior.
On Tuesday, 1 May 2012 16:17:46 UTC-4, MagouyaWare wrote: > > while (1!= 0) >> > And why in the world would you want an infinite loop? > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Tue, May 1, 2012 at 2:15 PM, Justin Anderson <[email protected]>wrote: > >> I'm sorry if the code isn't clear. The new thread instantiates a Canvas >>> and paints into it with Canvas.drawBitmap(). Neither the instantiation nor >>> the method call effect the UI. >>> >> >> Ah, ok... I see that now. Um... maybe I'm missing something, but what is >> the point of doing this? What exactly are you trying to accomplish? >> >> >> Thanks, >> Justin Anderson >> MagouyaWare Developer >> http://sites.google.com/site/magouyaware >> >> >> On Tue, May 1, 2012 at 1:35 PM, Ab <[email protected]> wrote: >> >>> I'm sorry if the code isn't clear. The new thread instantiates a Canvas >>> and paints into it with Canvas.drawBitmap(). Neither the instantiation nor >>> the method call effect the UI. >>> >>> >>> On Tuesday, 1 May 2012 15:25:34 UTC-4, MagouyaWare wrote: >>> >>>> the thread rendering off the UI thread doesn't touch/modify/update the >>>>> UI >>>>> >>>> >>>> Then would you mind explaining this? >>>> >>>>> It then starts a new thread which renders a Bitmap into a canvas >>>>> >>>> >>>> >>>> -- >>> 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 >>> >> >> > -- 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

