@@ -0,0 +1,756 @@
+package baidu.com.commontools.utils;%0A%0Aimport android.content.Context;%0Aimport android.net.ConnectivityManager;%0Aimport android.net.NetworkInfo;%0A%0Apublic class NetworkUtils %7B%0A%0A    private static ConnectivityManager sCM;%0A%0A    private static ConnectivityManager getConnectiveManager(Context cxt) %7B%0A        if (sCM == null) %7B%0A            Context appCxt = cxt.getApplicationContext();%0A            sCM = (ConnectivityManager) appCxt.getSystemService(Context.CONNECTIVITY_SERVICE);%0A        %7D%0A        return sCM;%0A    %7D%0A%0A    public boolean isNetworkAvailable(Context cxt) %7B%0A        ConnectivityManager cm = getConnectiveManager(cxt);%0A        NetworkInfo networkInfo = cm.getActiveNetworkInfo();%0A        return networkInfo != null && networkInfo.isConnected();%0A    %7D%0A%7D%0A

change : add NetworkUtils.