Android Question adding multple images to scrollview from mysql??

GudEvil

Member
Licensed User
Longtime User
I had to retrieve more than 2 say 5 or 10, images from mysql.

i got to retrieve static path for images n download using
job.download(url)

But I got to show all images in scrollview with its relevant heading, which is retrieved together in a row from my sql..

my question is how do ii show image with heading.
I can ablw to work for single but for multi results I was parsing with jason n map ing.

so I show heading1,n initiated job.download(1url) n add empty panel for image
once job is complete, I set that panel background with image..

but it shows only last image, it is overwritten on the last panel only...becuase I added pannel in loop

So how do I achieve this??
is it possible I wait for the first image download job to finish n then move to next loop?? I hope they have something for wait for job to finish...
 

walterf25

Expert
Licensed User
Longtime User
I had to retrieve more than 2 say 5 or 10, images from mysql.

i got to retrieve static path for images n download using
job.download(url)

But I got to show all images in scrollview with its relevant heading, which is retrieved together in a row from my sql..

my question is how do ii show image with heading.
I can ablw to work for single but for multi results I was parsing with jason n map ing.

so I show heading1,n initiated job.download(1url) n add empty panel for image
once job is complete, I set that panel background with image..

but it shows only last image, it is overwritten on the last panel only...becuase I added pannel in loop

So how do I achieve this??
is it possible I wait for the first image download job to finish n then move to next loop?? I hope they have something for wait for job to finish...
Take a look at this example, i haven't really looked at it in detail, but i'm guessing that you are trying to do something similar, hopefully this is a good example for you to get started.

https://www.b4x.com/android/forum/threads/flickr-viewer.6646/

cheers,
Walter
 
Upvote 0

GudEvil

Member
Licensed User
Longtime User
I had already looked into it, but I want synchronous because each image has tag heading...

which I didnt find in specified example
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
I had already looked into it, but I want synchronous because each image has tag heading...

which I didnt find in specified example
I don't think i've ever seen a synchronous example either, the only way i can think of is waiting for one image to be done downloading and starting the next one.....

I do have a library i made for a client of mine which is called DBCouch, is a SQL-less database library which can do a two way synchronization, i need to talk to him and see if i can get his permission to release it to the forums, Where are you downloading the images from? an Online Database?

Walter
 
Upvote 0

GudEvil

Member
Licensed User
Longtime User
yes online mysql database...

How do I wait for one image to download n start next after.????

even I have to do same thing for videos too..

I want to display list of image/video files with its heading, like listing....

Will wait for client decision...
 
Upvote 0
Top