zeta243 / osmdroid

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

Should use getCacheDir() as a cache dir, not SD card #310

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, OSMDroid uses the SD card to store the cache. This configuration 
requires an additional permission (WRITE_EXTERNAL_STORAGE), but more 
importantly, it goes against the Android data storage design. See 
https://developer.android.com/guide/topics/data/data-storage.html

If OSMDroid uses getCacheDir() as the cache storage, Android can clear the 
directory if additional space is required, and the data will be removed when 
the application is uninstalled.

IMHO, the SD card should not be used by OSMDroid. But, at the very least, 
OSMDroid should have a configuration option to use getCacheDir() or the SD 
card, and default to getCacheDir().

Original issue reported on code.google.com by candrews...@gmail.com on 13 Feb 2012 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Did you read the bit that said "stay within a reasonable limit of space 
consumed, such as 1MB"?

See also issue 234.

Original comment by neilboyd on 13 Feb 2012 at 6:30

GoogleCodeExporter commented 9 years ago
The way it works now the file cache is shared between all the apps using 
Osmroid which I quite like.

Original comment by iforpow...@gmail.com on 13 Feb 2012 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by neilboyd on 9 Apr 2012 at 2:33