Android Question Downloading and opening any type of file

jesseiz

Member
Licensed User
Longtime User
Hey,

How do i download and open any type of file?

B4X:
encodedLink = su.EncodeUrl(selectedfile,"UTF8")
Dim job As HttpJob
job.Initialize("DownloadFile", Me)

   job.Download(Link&"/files/" & encodedLink & "")

This is what i have right now but how do i open the file after it has finished?

Gr.jesse
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Sub JobDone(Job As HttpJob)
    ProgressDialogHide
    If Job.Success Then
        Log("JobName: "&Job.JobName)
    Else
        ToastMessageShow("Error: " & Job.ErrorMessage, True)
    End If
    Job.Release
End Sub
 
Upvote 0

jesseiz

Member
Licensed User
Longtime User
Hey,

That's not what i meant.
I know how JobDone works but i don't know how to open a file like .3gp or .mp3 or .jpg

but thanks!

Gr.Jesse
 
Upvote 0

jesseiz

Member
Licensed User
Longtime User
Yes ,

I searched for it but i can't seem to find exactly what i need.

What i want is to download a file from a URL and then save and open that file .

Do you know how to do that or have you found a post where they explain this?

Thanks!

Gr.Jesse
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
so thanks for this idea
 
Upvote 0
Top