@@ -0,0 +1,525 @@
+package com.anly.githubapp.common.util;%0A%0Aimport android.content.Context;%0Aimport android.net.ConnectivityManager;%0Aimport android.net.NetworkInfo;%0A%0A/**%0A * Created by mingjun on 16/7/21.%0A */%0Apublic class NetworkUtil %7B%0A%0A    public static boolean isNetworkAvailable(Context context) %7B%0A        ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);%0A        NetworkInfo networkInfo = cm.getActiveNetworkInfo();%0A        return networkInfo != null && networkInfo.isAvailable();%0A    %7D%0A%7D%0A

add network util