Android Question Wait download

fishwolf

Well-Known Member
Licensed User
Longtime User
Hi,

i have a activity with a default image, after the create and show activity, start the download procedure of specific image with httputils2, about 2-3 seconds.
This for no wait the download image or timeout when network is lost.
i choise of don't download image into a service for don't always lost bytes of traffic.

if i change activity before the download complete, the app return to first activity for show the image.

i don't find a .cancel method of httputil2
i'm tried to use a Flag for wait the download finish (loop), but the complete download event don't process
i'm tried to use a timer for wait the download finish, but i lost the sender object

Any suggest ?

Thanks

B4X:
Sub   View_Click
Dim Send As View
Send=Sender
 
Last edited:
Top