Is there a broadcast receiver or some kind of setting that we can listen/monitor to get notified if the internet/network has been connected.
Listen for CONNECTIVITY_ACTION
This looks like good sample code. Here is a snippet:
IntentFilter filter = new IntentFilter();
filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
context.registerReceiver(mReceiver, filter);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With