I have some shared preferences (latitude, longitude) that I want to access from a service, that is not subclassed from Activity.
In particular, when I try to access
If you are only using one SharedPreferences for your application, have all your code get it via PreferenceManager.getDefaultSharedPreferences().
SharedPreferences
PreferenceManager.getDefaultSharedPreferences()