@Override
    protected Object onGetDefaultValue(final TypedArray array, final int index) {
        return array.getString(index);
    }
default value, if none is given in the preference XML.
main/src/main/java/cgeo/geocaching/settings/TemplateTextPreference.java