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

2011-06-29 Thread Indicator Veritatis
At JAXConf, Romain Guy did say that instantiating Paint is a surprisingly CPU intensive operation. So yes, that should certainly be taken out of the for loop. The suggestion of taking out doubleParse() is a good one, too. On Jun 28, 5:33 pm, JP wrote: > On Jun 27, 7:32 am, Boozel wrote: > > > Ca

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

2011-06-29 Thread Boozel
Thanks, it was happening very intermittently but this seems to have helped. -- 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

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

2011-06-28 Thread JP
On Jun 27, 7:32 am, Boozel wrote: > Can any one tell me what the best structure is to do the drawing and prevent > this? Your draw() routine is inefficient, and you really get hit in the constrained mobile environment. Here's a few changes that I would try: - Pull object instantiations out of t

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

2011-06-27 Thread Zsolt Vasvari
On Jun 28, 8:12 am, Dianne Hackborn wrote: > Do "adb shell cat /data/anr/traces.txt" to see what your app was busy doing > at that point. Seriously, we need a blog entry that describes all these useful debugging tidbits. -- You received this message because you are subscribed to the Google Gro