Tuesday, May 1, 2012

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

Because it demonstrates the issue.  

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 <magouyaware@gmail.com> 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 <abe.oppenheim@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate