Well I have two apps.
First app owns the SharedPreferences
, and the app saves some data to it by apply
method.
And second app reads the preferences from the first app, (the first app saves preferences with MODE_WORLD_READABLE
) and it configures itself with them.
It was like this.
There are a preference key "x".
And the two apps were running at same time.
First app changed the value which is matched to "x"
And the second app didn't make any change.
After restarting second app, it does make change.
Why is this problem happening?
Do I have to update SharedPreferences
reference every time when I need to read some values from the first app?