cgeo/c-geo-opensource — Issue #706: Move /sdcard/.cgeo to /sdcard/Android/data/cgeo.geocaching
Author: SammysHP
Created: 2011-10-23 15:36:29+00:00
State: open
Labels: refactoring

I have a lot of directories on my sd-card and sometimes it's really annoying. I suggest to move ```/sdcard/.cgeo``` to ```/sdcard/Android/data/cgeo.geocaching```.

See:
http://developer.android.com/guide/topics/data/data-storage.html#AccessingExtFiles
http://developer.android.com/guide/topics/data/data-storage.html#ExternalCache

Maybe we have to add a new compatibility-class or we're using the "old" methods with a directory-name in any case:

>If you're using API Level 8 or greater, use ```getExternalFilesDir()``` to open a File that represents the external storage directory where you should save your files. [...]
>
>If you're using API Level 7 or lower, use ```getExternalStorageDirectory()```, to open a File representing the root of the external storage. You should then write your data in the following directory:
>
>```/Android/data//files/```

The only problem that I see is:

> If the user's device is running API Level 8 or greater and they uninstall your application, this directory and all its contents will be deleted.