Android Question http pending

fishwolf

Well-Known Member
Licensed User
Longtime User
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
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

fishwolf

Well-Known Member
Licensed User
Longtime User
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

B4X:
Sub JobDone (Job As HttpJob)

    If Main.ActivityActive == False Then
        Return
    End If
 
Last edited:
Upvote 0
Top