public static void migrateLocalStorage(final Activity activity) {
        final int currentVersion = Settings.getLocalStorageVersion();

        Log.iForce("LocalStorage: current Version: " + currentVersion + ", expected Version: " + LOCALSTORAGE_VERSION);

        if (currentVersion >= LOCALSTORAGE_VERSION) {
            //nothing to migrate
            return;
        }

        new MigrateTask(activity, currentVersion, LOCALSTORAGE_VERSION).execute();
    }
Returns the external public cgeo directory, something like <pre>/sdcard/cgeo</pre>.
It falls back to the internal cgeo directory if the external is not available.
main/src/main/java/cgeo/geocaching/storage/LocalStorage.java