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);
1.4m articles
1.4m replys
5 comments
57.0k users