Skip to content Skip to sidebar Skip to footer

Out Of Memory Exception - Google Map Groundoverlay

I'm trying to draw a picture on the google map. I'm using the latest version of google play services and checked a lot for this issue and couldn't find an answer. Here's some code:

Solution 1:

You should not be using images that are too large. You logcat suggests you try to allocate 67 MB, which is way too much for most of the devices.

Edit:

Maybe try using TileOverlay instead of GroundOverlay if you want to show images on a large area (city, country) and not have it pixelated when zoomed.

Solution 2:

These 67Mb you are seeing seem to be from a confirmed bug in google maps, see here for more info: https://code.google.com/p/gmaps-api-issues/issues/detail?id=7325

It was fixed back in February (2015 for the record). It should be solved if you use the latest version of google maps.

Post a Comment for "Out Of Memory Exception - Google Map Groundoverlay"