jaber103 Member Feb 26, 2024 #1 hi i want use urlpath for b4xImageView please help me . how to do? and this cod Picasso.Initialize Picasso.LoadUrl(adrespic).IntoImageView(ImageView1) for imageview works i want like this cod . tanks
hi i want use urlpath for b4xImageView please help me . how to do? and this cod Picasso.Initialize Picasso.LoadUrl(adrespic).IntoImageView(ImageView1) for imageview works i want like this cod . tanks
Alexander Stolte Expert Licensed User Longtime User Feb 27, 2024 #2 [B4X] OkHttpUtils2 with Wait For Downloading resources is simpler with the new Resumable Subs feature. Using Wait For we can wait for the JobDone event in the same sub that started the download. No longer is it needed to have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j.Initialize(""... www.b4x.com B4X: Copy 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 End If j.Release End Sub Upvote 0
[B4X] OkHttpUtils2 with Wait For Downloading resources is simpler with the new Resumable Subs feature. Using Wait For we can wait for the JobDone event in the same sub that started the download. No longer is it needed to have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j.Initialize(""... www.b4x.com B4X: Copy 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 End If j.Release End Sub
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2024 #4 jaber103 said: works this cod for b4ximageview ? Click to expand... Yes. Upvote 0
jaber103 Member Feb 27, 2024 #5 Erel said: Yes. Click to expand... But I tried and it didn't work Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2024 #6 This is not the correct way to ask for help. Upvote 0