always post any error messages to help us solve your problem.
Do you have a layout containing a Button which you forgot to load ?
If not create a new layout "Layout1" and add a Button to it. Then ....
also the correct code should be ..
myButton.SetBackgroundImage (job.GetBitmap)
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
DownloadImage("https://www.b4x.com/images3/android.png", Button1)
End Sub
Sub DownloadImage(Link As String, myButton As Button)
Dim job As HttpJob
job.Initialize("", Me) 'note that the name parameter is no longer needed.
job.Download(Link)
Wait For JobDone(job As HttpJob)
If job.Success Then
myButton.SetBackgroundImage (job.GetBitmap)
End If
job.Release
End Sub