I have a app that only consists of 2 services and a broadcast receiver (they check the internet periodically). I need to store preferences that can be shared across those services. Is this the same as for an activity? Just use getsharedpreferences()? This doesn't seem to be documented very well.
+1
A:
Yup, just getSharedDefaultPreferences
or getSharedPreferences
. Use them the exact same way you would with an Activity.
synic
2010-05-12 06:45:10