@@ -0,0 +1,690 @@
+package net.ichigotake.common.net;%0A%0Aimport android.content.Context;%0Aimport android.net.ConnectivityManager;%0Aimport android.net.NetworkInfo;%0A%0Apublic final class NetworkState %7B%0A%0A    public static boolean isConnected(Context context) %7B%0A        if (context == null) %7B%0A            return false;%0A        %7D%0A        ConnectivityManager connectivityManager =%0A                (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);%0A        if (connectivityManager == null) %7B%0A            return false;%0A        %7D%0A%0A        NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();%0A        return networkInfo != null%0A                && networkInfo.isConnected();%0A    %7D%0A%7D%0A

add NetworkState