On Fri, Jul 1, 2011 at 4:00 AM, Felix Garcia Lainez <fgarcialai...@gmail.com
> wrote:

> So you are doing something similar to my draw method?
>

Yup - nearly identical. What I don't do is use anti-aliasing (unless it's on
be default, I don't know) or alpha. I also only use moveTo() once (first
point) and then lineTo() thereafter. I can't imagine that would make much of
a difference.


> I have just tested without alpha and anti-alising and it is faster,
> but when there is big zoom level the mapactivity is closed (i think
> this is due to memory usage)
>

Use LogCat and the debugger to make sure.

How should i profile this case? Really as i said there is not any strange
> thing on the code... Simply a map with an overlay...
>

No idea. Look at the tools section in the docs and see what's available to
you. I *think* there some kind of profiling tool, but I don't know for sure.
If nothing else, you can throw a crude profiler together fairly easily to
track how long a given block of code takes.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to