I am currently encountering issues when extending the GPS
LocationListener class. The issue that I am seeing is when I get an
update via onProviderEnabled(String provider), I am unable to change
the SharedPreferences used by my application.

The problem here is that since I am not passed a context by
onProviderEnabled, I cant see a way of calling the function
context.getSharedPreferences, I have tried manually generating a new
context via creating a new instance of an activity, but this seems to
create a nullPointerException when getting shared prefs.

Surely I must be missing something here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to