I need work on a local area network,and download image show in a imageview.
ImageUrl = "http://www.b4x.com/basic4android/images/SS-2012-08-29_12.55.42.png"
DownloadImage(ImageUrl,ImageView1)
ImageUrl = "http://www.b4x.com/basic4android/images/SS-2012-08-29_12.55.42.png"
DownloadImage(ImageUrl,ImageView1)
show image:
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
'StartActivity( Main)
Log(j.ErrorMessage)
End If
j.Release
End Sub
Last edited: