I have some question about the HttpJob routine, for example during upload a large file , an error occurred ... and the file just upload a half ...,
and this case will be catch and HTTPJOB will return false ?
In your description you wrote about network error ,socket timeout
Success will be false in JobDone then, yes. You can get the error with
B4X:
Job.ErrorMessage
in JobDone...
B4X:
Sub JobDone(Job As HttpJob)
HideKeyboard
ProgressDialogHide
If Job.Success Then
If Job.JobName = "AddToCart" Then
Else
ToastMessageShow(Job.JobName&": " & Job.GetString, True)
End If
Else
ToastMessageShow("Error: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub