I have an activity that has `onReceive` (battery broadcast) and a service, that inserts data to **Shared Preferences**. Then from activity I get that data. My problem is that data is only refreshed when I change orientation of the phone. If I do not do that, Activity shows old Shared Preferences data. Any help will be appreciated.

What I would like to know:

* How to update my activity in Broadscast `onReceive` method.
* Why is SharedPreferences are not represented correctly?