You have to handle persistence yourself. To do so, either draw your
dots in a Bitmap or make sure to draw only the dots that will show on
screen.

On Mon, Feb 16, 2009 at 12:04 PM, Greg <gregory.r.fie...@gmail.com> wrote:
>
> I've been searching around and can't seem to find a way to do this
> properly.   I am doing some tracking where I want to draw dots on a
> map overlay recording previous positions.  When onDraw of the overlay
> is called it seems the canvas is cleared so I have to redraw all of
> the history on every invocation.  This could result in several
> thousands of dots being draw over time which seems to not be very
> efficient.
>
> Is there some flag somewhere that I have not found which tells a map
> overlay to be persistent?  Or is there some way I can save and restore
> the canvas so I'm only maintaining/drawing the current point on each
> onDraw?
>
> Thanks,
>
> Greg
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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