[Android] Save to the config file upon leaving the settings activity.