public static int getMapRotation() {
        final String prefValue = getString(R.string.pref_mapRotation, "");
        if (prefValue.equals(getKey(R.string.pref_maprotation_off))) {
            return MAPROTATION_OFF;
        } else if (prefValue.equals(getKey(R.string.pref_maprotation_auto_lowpower))) {
            return MAPROTATION_AUTO_LOWPOWER;
        } else if (prefValue.equals(getKey(R.string.pref_maprotation_auto_precise))) {
            return MAPROTATION_AUTO_PRECISE;
        }
        return MAPROTATION_MANUAL;
    }
remember the last selection in the dialog that assigns a cache to certain lists
main/src/main/java/cgeo/geocaching/settings/Settings.java