Merry Christmas everyone.
I am using a modified "FlickrViewer" program.
The steps are as follows:
1. Parse the URL to find thumbnails and main images - working
2. Place the file and path for thumb and image in a list - working
3. Read the thumb list and load the images into a scrollview - working
4. Click a thumb and load the corresponding main image in a new view - working
So where's the problem?
The list contains the thumbs as they are parsed from the URL, they are correct. The list is completed and then in a loop, the thumbs are loaded. The name is correct but the thumbnail is wrong. They are mixed up. Checking the log I find that the filename is saved to a temp folder (SD card for me) and has the name given by the variable TaskID. Logging this variable produces this output.
I have tried to insert a delay between fetching the thumbs (5 secs) but it had no effect. Can anyone help?
Mark
I am using a modified "FlickrViewer" program.
The steps are as follows:
1. Parse the URL to find thumbnails and main images - working
2. Place the file and path for thumb and image in a list - working
3. Read the thumb list and load the images into a scrollview - working
4. Click a thumb and load the corresponding main image in a new view - working
So where's the problem?
The list contains the thumbs as they are parsed from the URL, they are correct. The list is completed and then in a loop, the thumbs are loaded. The name is correct but the thumbnail is wrong. They are mixed up. Checking the log I find that the filename is saved to a temp folder (SD card for me) and has the name given by the variable TaskID. Logging this variable produces this output.
B4X:
TaskID: 6
TaskID: 3
TaskID: 5
TaskID: 2
TaskID: 4
TaskID: 8
TaskID: 7
TaskID: 10
TaskID: 11
TaskID: 12
TaskID: 14
TaskID: 9
TaskID: 15
TaskID: 16
TaskID: 17
TaskID: 18
TaskID: 19
TaskID: 20
I have tried to insert a delay between fetching the thumbs (5 secs) but it had no effect. Can anyone help?
Mark