Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note
As suspicious as it may look, I think it is very unlikely that the ANR is due too the infinite loop, and far more likely due to some issue with drawing into a Canvas on the a non-ui thread on the Galaxy Note. I believe this because the ANR does not occur if I remove the line "canvas.scale(.36f, .36f)".
On Tuesday, 1 May 2012 16:44:18 UTC-4, Miguel Morales wrote:
Also, if you have a very tight infinite loop. The scheduler won't know that there's a break for the processor so that it can do other things. You may also want to add a Thread.sleep() call.On Tue, May 1, 2012 at 1:43 PM, Miguel Morales <therevoltingx@gmail.com> wrote:You may want to try lowering the priority of the thread and seeing what happens.--On Tue, May 1, 2012 at 1:33 PM, Justin Anderson <magouyaware@gmail.com> wrote:
I highly doubt it... Your app creates a thread that runs forever and doesn't do anything? Sounds like you have a bug...Because it demonstrates the issue.On Tue, May 1, 2012 at 2:27 PM, Ab <abe.oppenheim@gmail.com> wrote:Because it demonstrates the issue.--
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
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/ revoltingx
--
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/ revoltingx
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