You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I created a MapView object in an activity. But I found out a terrible issue. After I have rotated the tablet many times, the MapView object always throws Out Of Memory exception. As the result, the activity is blocked or reflect slowly....
The text was updated successfully, but these errors were encountered:
neilboyd
changed the title
Bug: MapView out of memory
MapView out of memory
Jun 2, 2014
I have found out a solution. When the activity will be destroyed, we should call the function: mapView.getTileProvider().clearTileCache(); to clean resouces. With this method, the out of memory execption do not be throwed again.
if you programmatically construct the map view, then add it to the activity and don't clean it up on destroy, you may end up with a map view that doesn't get GC'd. @HelloGalaxy can you post the creation code?
Hello, I created a MapView object in an activity. But I found out a terrible issue. After I have rotated the tablet many times, the MapView object always throws Out Of Memory exception. As the result, the activity is blocked or reflect slowly....
The text was updated successfully, but these errors were encountered: