views:

97

answers:

1

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.

+6  A: 

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);
drawnonward