tawfiqdawod / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Recycling map tiles in detach() #399

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open and close map ca. 5 times in AndRoad, out of memory in heap space

Who is responsible for recycling map tiles (bitmaps)?
I think some of the map tile providers should do e.g. in the detach() method.

Original issue reported on code.google.com by temporar...@gmail.com on 3 Feb 2013 at 1:52

GoogleCodeExporter commented 8 years ago
The LRU cache recycles tiles when they are removed from the cache. Run a heap 
dump and check to see if you have something that is retaining your map 
instances. Compare your app to the samples (which don't have this problem) and 
see what you are doing differently.

Original comment by kurtzm...@gmail.com on 4 Feb 2013 at 2:31

GoogleCodeExporter commented 8 years ago

Original comment by kurtzm...@gmail.com on 13 Apr 2013 at 8:10