// NetUtils.java -- Network utilites.

import java.net.InetAddress;
import android.content.Context;
import android.net.ConnectivityManager;

class NetUtils {
    public static boolean isNetworkConnected() {
        ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

        return cm.getActiveNetworkInfo() != null;
    }

    public static boolean isInternetAvailable() {
        try {
            InetAddress ipAddr = InetAddress.getByName("google.com"); //You can replace it with your name
            return ! ipAddr.equals("");
        } catch (Exception e) {
            return false;
        }

    }
}

@@ -32,16 +32,52 @@
 lites.%0A%0A
+package ru.mityaresh.cadromonitor;%0A%0A
 import j

Add to the package