With PreferenceActivity, you haven't to set Preference name, it is managed by framework. Is it right?
On 4 Lug, 20:09, YuviDroid <yuvidr...@gmail.com> wrote: > 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%2Bunsubs > > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > YuviDroidhttp://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