The receiver's onReceieve method will give you a context. Use that. On Sat, Oct 23, 2010 at 11:20 PM, Alex <[email protected]> wrote:
> How can I retrieve SharedPreferences for a widget during an update > pushed by a broadcast receiver? > > I have a static BuildUpdate method on my AppWidgetProvider, but I > cannot work out how to retrieve my shared preferences as I do not have > an appropriate context. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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

