how to use the PreferenceActivity to set the shared settings