F fishwolf Well-Known Member Licensed User Longtime User Oct 2, 2015 #1 If i call slowly download of images and close the activity with Activift.Finish when arrive the job complete and i show images the activity is re-open itself until the last image is received how to fix? i use a unique HttpJob into a function
If i call slowly download of images and close the activity with Activift.Finish when arrive the job complete and i show images the activity is re-open itself until the last image is received how to fix? i use a unique HttpJob into a function
RandomCoder Well-Known Member Licensed User Longtime User Oct 2, 2015 #2 If using a service you can check that the activity is active before applying the downloaded images. Alternatively you could use a Process Global variable, set this to true when the activity is running and false when paused and check it's state in the job done routine to determine if the downloaded images are to be applied to the activity. Upvote 0
If using a service you can check that the activity is active before applying the downloaded images. Alternatively you could use a Process Global variable, set this to true when the activity is running and false when paused and check it's state in the job done routine to determine if the downloaded images are to be applied to the activity.
F fishwolf Well-Known Member Licensed User Longtime User Oct 3, 2015 #3 i don't use a service, i run all download images one time and wait the done for show i try with this code, but doesn't work Code: Copy Sub JobDone (Job As HttpJob) If Main.ActivityActive == False Then Return End If Last edited: Oct 3, 2015 Upvote 0
i don't use a service, i run all download images one time and wait the done for show i try with this code, but doesn't work Code: Copy Sub JobDone (Job As HttpJob) If Main.ActivityActive == False Then Return End If
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2015 #4 You need to use a service as RandomCoder wrote. Another option is to use ImageDownloader: https://www.b4x.com/search?query=ImageDownloader Upvote 0
You need to use a service as RandomCoder wrote. Another option is to use ImageDownloader: https://www.b4x.com/search?query=ImageDownloader