Hi Erel,
I've a problem with HttpUtils2,
When i make a HttpJob.Download(Url) or PostString(Url, sString),
if the server (url) is down i have the follow error:
java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:195)
.....
And the event "JobDone" don´t raise.
With HttpClient and HttpRequest, you have two events:
ResponseError (Response AsHttpResponse, Reason AsString, StatusCode AsInt, TaskId AsInt) and
ResponseSuccess (Response AsHttpResponse, TaskId AsInt)
What's the solution?
Thanks ins advance for your cooperation.
I've a problem with HttpUtils2,
When i make a HttpJob.Download(Url) or PostString(Url, sString),
if the server (url) is down i have the follow error:
java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:195)
.....
And the event "JobDone" don´t raise.
With HttpClient and HttpRequest, you have two events:
ResponseError (Response AsHttpResponse, Reason AsString, StatusCode AsInt, TaskId AsInt) and
ResponseSuccess (Response AsHttpResponse, TaskId AsInt)
What's the solution?
Thanks ins advance for your cooperation.