Basically what you should do is to use as 'key' a concatenation of your original preference key and the appWidgetId, which is what you can see in the code posted by Kostya.
On Sun, Jul 4, 2010 at 7:22 PM, Premier <a.grum...@gmail.com> wrote: > I want to know how i can get shared preferences for each appWidgetId. > > Regards. > > On 4 Lug, 18:56, Premier <a.grum...@gmail.com> wrote: > > Hello, > > i'm using PreferenceActivity class to configure my widget. > > PreferenceActivity class automatically saves user preferences, so in > > widget update service i can call context.getSharedPreferences() and i > > obtain user preferences. > > > > Problem is follow: if you have many widget of same type, how > > PreferenceActivity class saves prefs? how i can load appWidgetId > > specific prefs from sharedPreferences? > > > > Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en