public static boolean isNetworkAvailable(){
  return isNetworkAvailable(NetType.Any);
}

public static boolean isNetworkAvailable ( ) { return isNetworkAvailable ( NetType . Any ) ; }
check the network is enable .
