Android Question Download-Folder

TheRealMatze

Active Member
Licensed User
Hello!
Today i have a very small problem i think... I want to download a excel-file from a server and save it on the phone.

B4X:
Dim j As HttpJob
        j.Initialize("", Me)
        Log(url)
        j.Download(url)
        Wait For (j) JobDone(j As HttpJob)
        If j.Success Then
            Dim out As OutputStream = File.OpenOutput(File.DirInternal, bl.betrieb & ".xlsx",False)
            Log(File.DirInternal)
            File.Copy2(j.GetInputStream, out)
            out.Close
            Log("success")
        End If
        j.Release

That (looks like) it´s working - but i can´t find the file on the emulator. I understand i have to get the right to save directly to the download-folder, but i dont understand the information i found about it.
Can anybody help me downloading or copying the file to the default download folder?

Thank you
Matze
 
Top