public static void setMapRotation(final int mapRotation) {
        switch (mapRotation) {
            case MAPROTATION_OFF:
                putString(R.string.pref_mapRotation, getKey(R.string.pref_maprotation_off));
                break;
            case MAPROTATION_MANUAL:
                putString(R.string.pref_mapRotation, getKey(R.string.pref_maprotation_manual));
                break;
            case MAPROTATION_AUTO_LOWPOWER:
                putString(R.string.pref_mapRotation, getKey(R.string.pref_maprotation_auto_lowpower));
                break;
            case MAPROTATION_AUTO_PRECISE:
                putString(R.string.pref_mapRotation, getKey(R.string.pref_maprotation_auto_precise));
                break;
            default:
                // do nothing except satisfy static code analysis
                break;
        }
    }
remember the last selection in the dialog that assigns a cache to certain lists
main/src/main/java/cgeo/geocaching/settings/Settings.java