iOS Question [ HttpJob Download ] Each call of this function creates a thread?

Waldemar Lima

Well-Known Member
Licensed User
Hello !

if i call of this SUB much times , every call will create a new thread of HttpJob ?

B4X:
Sub DownloadImage(Link As String, iv As ImageView)
    Dim j As HttpJob
    j.Initialize("", Me)
    j.Download(Link)
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        iv.Bitmap = j.GetBitmap
    Else
        Msgbox("Error downloading image: " & j.JobName & CRLF & j.ErrorMessage,"Download Failure")
    End If   
    j.Release
End Sub
 
Last edited:
Top