Skip to content

Instantly share code, notes, and snippets.

View rakshith-sangamone's full-sized avatar

rakshith-sangamone

View GitHub Profile
public class NetworkChangeReceiver extends BroadcastReceiver{
private static final String LOG_TAG = "NetworkChangeReceiver";
private boolean isConnected = false;
@Override
public void onReceive(Context context, Intent intent) {
Log.v(LOG_TAG, "Receieved notification about network status");
isNetworkAvailable(context);
}