Add broadcast receiver to check connected network.