Connection sharedpreferences-activity-mainactivity