In CheckBoxPreference, what is the difference between "android:defaultValue" and "android:checked"? Both seems to be doing the same thing
<CheckBoxPreference
android:key="pref_"
android:title=""
android:summary=""
android:defaultValue="true"
android:checked="true">
</CheckBoxPreference>
Sets the checked state and saves it to the SharedPreferences. And Sets the default value for this Preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.