@@ -0,0 +1,550 @@
+package fr.tvbarthel.apps.simpleweatherforcast.utils;%0A%0Aimport android.app.Service;%0Aimport android.content.Context;%0Aimport android.net.ConnectivityManager;%0Aimport android.net.NetworkInfo;%0A%0Apublic class ConnectivityUtils %7B%0A%0A%09public static boolean isConnected(Context context) %7B%0A%09%09final ConnectivityManager connectivityManager = (ConnectivityManager)%0A%09%09%09%09context.getSystemService(Service.CONNECTIVITY_SERVICE);%0A%09%09final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();%0A%09%09return networkInfo != null && networkInfo.isConnected();%0A%09%7D%0A%7D%0A

Add ConnectivityUtils.