What would be the best way to get status connected/disconnected since connectivity.state == NetworkInfo.State.CONNECTED is deprecated.
What would be the best way to get status connected/disconnected since connectivity.state == NetworkInfo.State.CONNECTED
is deprecated.