package mlxy.utils;

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

public class Network {
    public static boolean connected(Context context) {
        ConnectivityManager connManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
        return connManager.getActiveNetworkInfo() != null && connManager.getActiveNetworkInfo().isAvailable();
    }
}

@@ -110,16 +110,309 @@
 twork %7B%0A
+    public static boolean available(Context context) %7B%0A        ConnectivityManager connManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);%0A        return connManager.getActiveNetworkInfo() != null && connManager.getActiveNetworkInfo().isAvailable();%0A    %7D%0A%0A
     publ
@@ -450,32 +450,32 @@
 text context) %7B%0A
-
         Connecti
@@ -672,33 +672,33 @@
 orkInfo().is
-Available
+Connected
 ();%0A    %7D%0A%7D%0A

Add Network.available()