MyLocationOverlay dissappears, is not there onResume.

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2011-01-10T00:55:19Z Indexed on 2011/01/10 4:53 UTC
Read the original article Hit count: 187

I have a mapView to which I add a MyLocationOverlay. It displays fine when the app starts from scratch (goes through onCreate). If I exit the app (back button) and then start it again (onResume), the overlay is gone.

I have tried to fix this for 10+ hours. All sorts of messing with re-adding the overlay. Resetting the overlays. Changing the maps location so it's forced to redraw. Trying to manually invalidate or force a redraw of the overlay. NOTHING has worked.

From the way the code looks, the Overlay object exists and everything is working fine - but it's just not on the map.

Is anybody else having this problem?

(Droid Incredible, 2.2)

© Stack Overflow or respective owner

Related posts about android

Related posts about google-maps