1. You can only update it by showing the PreferenceScreen again after the user returned to your activity. Which means that the user will not see the updated value they close the preference screen.
2. The preferences are saved automatically to a file. You do not need to save them yourself.