Android Question GetRequest.Timeout, before or after of "download"?

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I need to change the timeout and I don't know if I should set it before or after I run the download line.
Thank you.

B4X:
Dim j As HttpJob
j.Initialize("",Me)
' here?   j.GetRequest.Timeout = 10000    
j.Download( cFile )
Wait For (j) JobDone(j As HttpJob)
' or here?   j.GetRequest.Timeout = 10000 
If j.Success Then
 
Top