Android Question okHttpUtils2 Download multiple image error

Rachbob

Member
Licensed User
hello
I have a problem downloading more than one picture into imageviews. can anybody give help


 

aeric

Expert
Licensed User
Longtime User
Please use code tags and post your code as text.

You should check the job’s name in jobdone sub.
B4X:
Sub JobDone(job As HttpJob)
    If job.Success Then
        If job.Name = "job1" Then
            Imageview1.SetBackgroundImage(job.GetBitmap)
        Else If job.Name = "job2" Then
            Imageview2.SetBackgroundImage(job.GetBitmap)
        End If
    End If
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…