public static boolean isConnectedMobile(Context context) { NetworkInfo info = ConnectionChecker.getNetworkInfo(context); return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_MOBILE); }
public static boolean isConnectedFast(Context context) { NetworkInfo info = ConnectionChecker.getNetworkInfo(context); return (info != null && info.isConnected() && ConnectionChecker.isConnectionFast(info.getType(), info.getSubtype())); }
public static boolean isConnected(Context context) { NetworkInfo info = ConnectionChecker.getNetworkInfo(context); return (info != null && info.isConnected()); }