Am Sonntag, 17. Juni 2012 19:04:41 UTC+2 schrieb android-coder:
Hi,
I report a problem similar to the discussed problem here.
I loose all tiles in a preloaded cache if the app crashes cause the device is turned so the map avtivity is restarted.
I use the version 0.3.0 with a online nautical map of sweden generated from
www.eniro.se and normally everything runs fine.
Thanks to the developers for this excellent piece of software.
I get the tiles via a 3g connection. If the signal is weak, sometimes I get the tiles , but sometimes they cannot retrieved, so I get blank parts in the map.
So I download all the tiles with the tile-cache enabled, that cover the expected route in the harbour where I have a good signal strength. . Normally this are 500-700 tiles.
Everthing is fine,
Now I start the trip and maybe there is a tile that I forgot to load in the cache, so the library tries to get it over a weak connection.
If the activity is now closed and this may happen when the device is turned, the app crashes.
I think, that the problem is a running thread, which handles a tile-download, that is not correctly terminated when the mapview is closed.
I cannot debug this problem, cause the situation depends on the signal qualitiy of the 3g connection.
The main problem is , that the cache looses all information about the "good" tiles I downloaded before, cause the cache.ser file is only written when the app is regular terminated.
It would help, if there would be a safety-copy of the cache.ser file, which could be retrieved is such cases.
Victor