@@ -0,0 +1,1010 @@
+package org.apache.taverna.mobile.utils;%0A%0Aimport android.content.Context;%0Aimport android.net.ConnectivityManager;%0Aimport android.net.NetworkInfo;%0Aimport android.util.Log;%0A%0A/**%0A * Created by Sagar on 03/06/16.%0A */%0Apublic class ConnectionInfo %7B%0A    private static String TAG;%0A    private static Context context;%0A%0A    public ConnectionInfo(Context context) %7B%0A        TAG = this.getClass().getName();%0A        Log.i(TAG, %22Utils: %22);%0A        ConnectionInfo.context = context;%0A    %7D%0A%0A%0A    public boolean isConnectingToInternet() %7B%0A        ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);%0A        if (connectivity != null) %7B%0A            NetworkInfo%5B%5D info = connectivity.getAllNetworkInfo();%0A            if (info != null)%0A                for (int i = 0; i %3C info.length; i++)%0A                    if (info%5Bi%5D.getState() == NetworkInfo.State.CONNECTED) %7B%0A                        return true;%0A                    %7D%0A%0A        %7D%0A        return false;%0A    %7D%0A%0A%7D%0A

add connection info class