Example code using a Preference Fragment.