Getting location from settings, How to use sharedPreferences