Hi Stace, and who sends the intent, if the Preference changed ?
Thanks ! Frank On 21 Jun., 04:51, Connick <[email protected]> wrote: > Hi, > > I'm not sure I understand what you are trying to do ...but if it helps any, > I ended up using a broadcast/receiver to relay the preference change. While > I could have just re-read from preferences onResume on the second activity, > I didn't want the user to see data shifting around in the list as the new > sort was applied. > > Cheers, > Stace > > > > ---------- Forwarded message ---------- > From: FrankG <[email protected]> > Date: Thu, Jun 17, 2010 at 8:15 AM > Subject: Re: OnSharedPreferenceChangeListener never receives callback > To: Connick <[email protected]> > > Hello Connick, > > sorry to bother you, but have you done, that it works now > for you ? > > My situation : > Service A has SharedPreference .. write them after some kernel > events > > Activity B can read them ( i.e. in onResume ) > > BUT, if the Activity is currently shown I will update them via > a SharedPreferenceChangeListener. But he isn't called , when Service > a changes the Preference. > > For me a very simular situation to yours, right ? > > So what is the missing point ? Thanks a lot ! > > Frank > > On 15 Jun., 23:52, Connick <[email protected]> wrote: > > Cancel that, I just grasped what you were getting at. :) > > > On Tue, Jun 15, 2010 at 5:18 PM, Connick <[email protected]> wrote: > > > Will file a big, thx! > > > > On Tue, Jun 15, 2010 at 4:45 PM, Mark Murphy <[email protected] > >wrote: > > > >> On Tue, Jun 15, 2010 at 4:42 PM, Connick <[email protected]> wrote: > > >> > Interesting, it only works if used within an activity that extends > > >> > PreferenceActivity. Crap. > > > >> So long as all components are using the same preference file, it > > >> should work for modifications from any source. That is what I meant by > > >> "correct" in my previous reply. > > > >> -- > > >> Mark Murphy > > >> CommonsWare > > >> [email protected] > > >>http://commonsware.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]<android-developers%2bunsubs[email protected]> > <android-developers%2bunsubs[email protected]> > > >> For more options, visit this group at > > >>http://groups.google.com/group/android-developers?hl=en-Zitierten Text > ausblenden - > > > - Zitierten Text anzeigen -- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - -- 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

