Android Question HTTPJob nt stop download files

Tilesoft

Member
Hi.
I wrote the code in which the file is downloaded and saved. But after doing that, the download process is repeated indefinitely.
B4X:
Dim  ExoloreGame1Coverjob As HttpJob
        ExoloreGame1Coverjob.Initialize("ExoloreGame1Coverjob", Me)
        ExoloreGame1Coverjob.Download("https://lilapp.ir/game_0x_play/Explore/Last/Trailer1/sources-min.jpg")
        Wait For (ExoloreGame1Coverjob) jobDone(ExoloreGame1Coverjob As HttpJob)
        If ExoloreGame1Coverjob.Success Then
            Dim out As OutputStream = File.OpenOutput(File.DirRootExternal, "GPlay_TMP/Game1Cover.jpg", False)
            File.Copy2(ExoloreGame1Coverjob.GetInputStream, out)
            out.Close '<------ very important
            Game1_Cover.Bitmap = LoadBitmap(File.DirRootExternal & "/GPlay_TMP", "Game1Cover.jpg")
            Log("OK")
        End If
        ExoloreGame1Coverjob.Release
 
Top