My application contains a Service to refresh datas depending on preferences values.
I also have in my application a PreferenceActivity to change these values.

My service implements OnSharedPreferenceChangeListener, get preferences and register the listener. I can get preferences values but if i change preferences in the data activity, onSharedPreferencesChanged isn't called (so datas aren't updated).

Is there a way to fix this without binding the PreferenceActivity and the service ?

Thanks

```
public class EventsService extends Service implements OnSharedPreferenceChangeListener {
    ...
    private SharedPreferences preferences;
    ...

    @Override
    public void onCreate() {
    super.onCreate();
    ...
    preferences = PreferenceManager.getDefaultSharedPreferences(this);
    preferences.registerOnSharedPreferenceChangeListener(this);
    ...
    }

    //On the same way i unregistered the listener onDestroy()

    private TimerTask updateTask = new TimerTask() {      
       @Override
       public void run() {     
              ....
               Log.v(TAG,"PREF : "+Integer.parseInt(preferences.getString("special_reminder_minutes","10")));
              ....
        }
    }

   @Override
   public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
      Log.d(TAG,"PREF CHANGED O -----------------------");

   }
 }

```

NB: For now, the preferences only contains a string array.