Peanuts
Eine Layout-Page mit einem Imageview drauf, HTTP Lib anklicken und folgenden Code verwenden als Beispiel:
Sub Process_Globals
Dim hc As HttpClient
End Sub
Sub Globals
Dim ImageView1 As ImageView
Dim bmpSwitch As Bitmap
End Sub
Sub Activity_Create(FirstTime As Boolean)
activity.LoadLayout("pgMain")
If FirstTime Then
hc.Initialize("hc")
End If
SendRequest(1)
End Sub
Sub SendRequest(intID As Int)
Dim req As HttpRequest
req.InitializeGet("http://www.google.ch/images/srpr/logo3w.png")
hc.Execute(req, intID)
End Sub
Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Dim strInput As String
bmpSwitch.Initialize2(Response.GetInputStream)
ImageView1.Bitmap = bmpSwitch
End Sub
Geht auch mit sonstigen Bitmaps (bmp, png whatever)