Writed the new settings using PreferenceActivity