Fixed:

The next was modified to run on the UIThread:

Toast messages.
Modifiers of UI layouts.

Connectivity awareness is working.

Next steps:
Be aware of connectivity changes and hide the refresh button when there's no connectivity.