I have one list which takes info from MySql database. In that MySQL I have 3 parametars:
Name (name of device)
ShortName (short name like P500)
LinkBMP (url link to image www.xxxxxx.com/image.png) image is 50x50
How can I fill in the list images. I have tried with HttpUtils2 but I get no clue
Here is part of code which get response from server:
And code for - job3.Download(bSlika)
The data from MySQL i get Ok but it just won't put online images in list.
With images which are in program is ok
Sample of data:
LG, P500, http://www.link_to_image.com/p500.png
SE, S500, http://www.link_to_image.com/se.png
Ovi, 3000, http://www.link_to_image.com/ovi.png ...etc
Is it possibile to put online images in list like this :sign0163:
Name (name of device)
ShortName (short name like P500)
LinkBMP (url link to image www.xxxxxx.com/image.png) image is 50x50
How can I fill in the list images. I have tried with HttpUtils2 but I get no clue
Here is part of code which get response from server:
B4X:
Dim countries As List
countries = parser.NextArray 'returns a list with maps
For i = 0 To countries.Size - 1
Dim m As Map
m = countries.Get(i)
'We are using a custom type named mojalista (declared in Sub Globals).
'Type mojalista (First As String, Second As String, Slika As Bitmap)
'It allows us to later get the two values when the user presses on an item.
Dim tl As mojalista
tl.First = m.Get("Name") 'First is string
tl.Second = m.Get("ShortName ") ' second is string
bSlika = m.Get("LinkBMP ") 'bSlika is string
'*****************
job3.Download(bSlika)
' After this line I got error.
tl.Slika = slikica
listax.AddTwoLinesAndBitmap2(tl.First, tl.Second,tl.Slika,tl)
Next
And code for - job3.Download(bSlika)
B4X:
Case "Job3"
'show the downloaded image
slikica = Job.GetBitmap
The data from MySQL i get Ok but it just won't put online images in list.
With images which are in program is ok
Sample of data:
LG, P500, http://www.link_to_image.com/p500.png
SE, S500, http://www.link_to_image.com/se.png
Ovi, 3000, http://www.link_to_image.com/ovi.png ...etc
Is it possibile to put online images in list like this :sign0163: