Re: [android-developers] ANR Reason: keyDispatchingTimedOut when drawing overlay on map?

2011-06-28 Thread Boozel
Can you give me some more information on how to use this? do i run it after the ANR? Thanks -- 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

Re: [android-developers] ANR Reason: keyDispatchingTimedOut when drawing overlay on map?

2011-06-28 Thread Dianne Hackborn
When the ANR happens all of the process's stacks are written to this file, with the process being accused of the ANR first. All this is doing is dumping the file so you can look at it. So you just want to look at it some time after the ANR, before another ANR happens. On Tue, Jun 28, 2011 at

[android-developers] ANR Reason: keyDispatchingTimedOut when drawing overlay on map?

2011-06-27 Thread Boozel
Hi i'm trying to draw an overlay onto a google map but i sometimes get an ANR Reason: keyDispatchingTimedOut . Can any one tell me what the best structure is to do the drawing and prevent this? My code is below. Thanks in advance for any help public class MyMap extends MapActivity { /** Called

Re: [android-developers] ANR Reason: keyDispatchingTimedOut when drawing overlay on map?

2011-06-27 Thread Dianne Hackborn
Do adb shell cat /data/anr/traces.txt to see what your app was busy doing at that point. This is the very first step you need to take: understand what your app is doing that is causing the ANR. The next step I would take from that, if it is not enough to solve the problem, is profile your app.