httputils no response from the server

caillaud

Member
Licensed User
Longtime User
hi
how is it possible to detect no response from the server:
telecommunication incident
server out of order

and so inform the owner of the smartphone:
incident try again later


thanks in advance
sincerely
michel
 

caillaud

Member
Licensed User
Longtime User
hi
thanks for your answer
does your answer mean this kind of code correct:
B4X:
Sub JobDone(job As String)
try
label1.text="HelloWorld"
HttpUtils.Complete = False
catch
label1.text="Sorry incident try later"
HttpUtils.Complete = False
end try
end sub
sincerely
michel
 
Upvote 0

caillaud

Member
Licensed User
Longtime User
Hi
thanks a lot
the following code seems working fine:
B4X:
Sub JobDone(job As String)
If HttpUtils.issuccess(myurl) Then
label1.text="helloWorld"
else
label1.text="sorry:incident try later"
endif
HttpUtils.Complete = False
end sub
sincerely
michel
 
Upvote 0
Top