@@ -0,0 +1,511 @@
+package com.gotlaid.android.utils;%0A%0Aimport android.content.Context;%0Aimport android.net.ConnectivityManager;%0A%0A/**%0A * Created by zigapk on 7.7.2016.%0A */%0Apublic class InternetUtils %7B%0A    public static boolean isOnline(Context context) %7B%0A        try %7B%0A            ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);%0A            return cm.getActiveNetworkInfo().isConnectedOrConnecting();%0A        %7D catch (Exception e) %7B%0A            return false;%0A        %7D%0A    %7D%0A%7D%0A

add internet utils with isOnline() method