Android Check internet connectivity

Android Check internet connectivity. Below android code to check if mobile is connected to internet or not ? public static boolean isConnectingToInternet(Context context) { try { ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (connectivity != null) { NetworkInfo[] info = connectivity.getAllNetworkInfo(); if (info != null) for...
Continue reading »