Hi all
i m trying to understand and find a ideia but not sucess
i go try show a sample
i m get a json result like this
Ok the result is 4 images,
Amount = 4
i have 10 imagesview (img1, img2, img3, img4 etc...)
i mm trying to get the result with for each
The result is
Ok now my question
how can I separate/divede this result?
getlink1 only and load this on imageview1
getlink2 load this on imageview2
getlink3 load this on imageview3 etc...
i never know the result amount of links, can is 2 photos or 3 max 10 (1 - 10)
thx to all, i m trying to learn *-*
i m trying to understand and find a ideia but not sucess
i go try show a sample
i m get a json result like this
B4X:
{"Success":true,"Sent":{"Has":false},"NotSent":{"Has":false,"Amount":4,"Thumbnails":[{"PhotoID":"43","Url":"http:\/\/www.lala.com\/lala\/\/Files\/Users\/18\/Thumbnails\/0378750001408127092f58cd017a3b80ef6d315192973ebf7a2.jpg"},{"PhotoID":"42","Url":"http:\/\/www.lala.com\/lala\/\/Files\/Users\/18\/Thumbnails\/0378750001408126725123518fd3f73a70c4c1c65de84c4981a.jpg"},{"PhotoID":"41","Url":"http:\/\/www.lala.com\/lala\/\/Files\/Users\/18\/Thumbnails\/0191250001408126603f58cd017a3b80ef6d315192973ebf7a2.jpg"},{"PhotoID":"40","Url":"http:\/\/www.lala.com\/lala\/\/Files\/Users\/18\/Thumbnails\/0035000001408125442123518fd3f73a70c4c1c65de84c4981a.jpg"}]}}
Ok the result is 4 images,
Amount = 4
i have 10 imagesview (img1, img2, img3, img4 etc...)
i mm trying to get the result with for each
B4X:
Dim Thumbnails As List = NotSent.Get("Thumbnails")
For Each colThumbnails As Map In Thumbnails
Dim Url As String = colThumbnails.Get("Url")
Log(Url)
Dim photoid As String = colThumbnails.Get("PhotoID")
Log(photoid)
Next
The result is
http://www.lala.com/lala//Files/Use...40812747265f3495c78f055c17ea5ae448568cf16.jpg
44
http://www.lala.com/lala//Files/Use...408127092f58cd017a3b80ef6d315192973ebf7a2.jpg
43
http://www.lala.com/lala//Files/Use...408126725123518fd3f73a70c4c1c65de84c4981a.jpg
42
http://www.lala.com/lala//Files/Use...408126603f58cd017a3b80ef6d315192973ebf7a2.jpg
41
Ok now my question
how can I separate/divede this result?
getlink1 only and load this on imageview1
getlink2 load this on imageview2
getlink3 load this on imageview3 etc...
i never know the result amount of links, can is 2 photos or 3 max 10 (1 - 10)
thx to all, i m trying to learn *-*
Last edited: