set the sharedpreference for setting activity