Set Preference in Main Activity