Use NetworkManager in fragments for checking network state