|
@@ -11,6 +11,7 @@ import android.text.TextUtils;
|
|
|
import com.usai.redant.apexdrivers.ApexDriverApplication;
|
|
import com.usai.redant.apexdrivers.ApexDriverApplication;
|
|
|
import com.usai.redant.apexdrivers.offline.OfflineHandler;
|
|
import com.usai.redant.apexdrivers.offline.OfflineHandler;
|
|
|
import com.usai.redant.rautils.utils.RAUtil;
|
|
import com.usai.redant.rautils.utils.RAUtil;
|
|
|
|
|
+import com.usai.redant.rautils.utils.dbgUtil;
|
|
|
|
|
|
|
|
import org.json.JSONException;
|
|
import org.json.JSONException;
|
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
@@ -102,10 +103,18 @@ public class Network extends com.usai.redant.rautils.utils.Network {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static String getJson(String url, Bundle parms) {
|
|
public static String getJson(String url, Bundle parms) {
|
|
|
|
|
+
|
|
|
|
|
+ dbgUtil.fileLog(ApexDriverApplication.sharedApplication(), "getJson(String url, Bundle parms) params " + parms.toString());
|
|
|
|
|
+ dbgUtil.fileLog(ApexDriverApplication.sharedApplication(), "getJson(String url, Bundle parms) network available:" + (NetworkIsAvailable(ApexDriverApplication.sharedApplication())));
|
|
|
|
|
+
|
|
|
return getJson(url,parms, com.usai.redant.rautils.utils.Network.SO_TIMEOUT);
|
|
return getJson(url,parms, com.usai.redant.rautils.utils.Network.SO_TIMEOUT);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static String getJSON(String url, Bundle params, int timeout) {
|
|
public static String getJSON(String url, Bundle params, int timeout) {
|
|
|
|
|
+
|
|
|
|
|
+ dbgUtil.fileLog(ApexDriverApplication.sharedApplication(), "getJSON(String url, Bundle params, int timeout) params " + params.toString());
|
|
|
|
|
+ dbgUtil.fileLog(ApexDriverApplication.sharedApplication(), "getJSON(String url, Bundle params, int timeout) network available:" + (NetworkIsAvailable(ApexDriverApplication.sharedApplication())));
|
|
|
|
|
+
|
|
|
return getJson(url,params,timeout);
|
|
return getJson(url,params,timeout);
|
|
|
}
|
|
}
|
|
|
|
|
|