Changing the data type of the preference causes a crash at launch after updating from a previous version. This should be handled before PreferenceManager.setDefaultValues in Common.init. I suggest prefs.getBoolean in a try/catch for ClassCastException; if true clear the preference and putString "2" or "3", else only clear it. Leave the catch empty since it would already be the new type.