defaultValue from xml preference file isn't stored - why?
问题 When the application is first startet, I'd like to store all default values I've defined in my prefences.xml by using the 'android:defaultValue' attribute, but some of them are not stored on the device - can someone tell me why? <?xml version="1.0" encoding="utf-8"?> <PreferenceCategory android:title="@string/prefs_cat_title_x"> <ListPreference android:key="@string/prefs_key_1" android:title="@string/prefs_title_1" android:summary="@string/prefs_summary_1" android:entries="@array/array1"