Hello There
I am using HTTPUtils ( https://www.b4x.com/android/forum/threads/46565/#content ) and so far all is good until I tried to extract the response block returned OnError by the server ( I was unable to find a way to do it unless I am missing something).
When I examined our equivalent B4A code, I noticed that we are using OKHTTPResponse.
With B4I, it seems that I have to include the standard library iHttpUtils2 while with B4A I didn't (again if I am not wrong in here). But when I include iHttpUtils2 the compiler complains about a duplicate declaration for HttpJob because we are using a shared module named "HttpJob" between the B4A and B4I apps.
What is the best way around this without having to rename the shared module
I am using HTTPUtils ( https://www.b4x.com/android/forum/threads/46565/#content ) and so far all is good until I tried to extract the response block returned OnError by the server ( I was unable to find a way to do it unless I am missing something).
B4X:
Sub hc_ResponseError (Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
'Unable to get the info from Response on error
End Sub
When I examined our equivalent B4A code, I noticed that we are using OKHTTPResponse.
With B4I, it seems that I have to include the standard library iHttpUtils2 while with B4A I didn't (again if I am not wrong in here). But when I include iHttpUtils2 the compiler complains about a duplicate declaration for HttpJob because we are using a shared module named "HttpJob" between the B4A and B4I apps.
What is the best way around this without having to rename the shared module