draw function is called continuesly without invalidate

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

draw function is called continuesly without invalidate

Postby nitinnitin18 » Wed Mar 24, 2010 10:30 pm

I have written a code t find the nearest eating and other location to a person location.
But the problem is the draw function is redrawn continuesly without calling the MapView.invalidate()
There is no other way that function might be called.
cant figure out how to limit it as it is eating my cpu cycles ...
Is there any other way then invalidate() to refresh it al such great level
Also the draw is made to return false but still no efffect.
and it is reaching the return statement in draw function.
nitinnitin18
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Mar 24, 2010 10:21 pm

Top

Re: draw function is called continuesly without invalidate

Postby faedas » Thu Mar 25, 2010 12:20 am

nitinnitin18 wrote:I have written a code t find the nearest eating and other location to a person location.
But the problem is the draw function is redrawn continuesly without calling the MapView.invalidate()
There is no other way that function might be called.
cant figure out how to limit it as it is eating my cpu cycles ...
Is there any other way then invalidate() to refresh it al such great level
Also the draw is made to return false but still no efffect.
and it is reaching the return statement in draw function.


some code sure would be helpful :)
faedas
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Dec 03, 2009 7:09 pm
Location: Germany, Aachen

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 7 guests