Android Question unzip question

Ricardo Bunschoten

Active Member
Licensed User
Longtime User
i want to unzip to a internal memory mapping (no sdcard)
Arc.AsyncUnZip(File.DirDefaultExternal,"data.zip" ,File.Dirinternal & "/storage/emulated/0/", "arc")


but that seems not to work

its for a android emu called retroarch



Any Ideas ?
 

Ricardo Bunschoten

Active Member
Licensed User
Longtime User
works but i needed the sync option to monitor a sucessfull unzip

solution

B4X:
Sub dd_Complete(Job As HttpJob)
    Log("Job completed: " & Job.Success)
    Dim o As OutputStream
    o = File.OpenOutput(File.DirDefaultExternal, "data.zip", False)
    File.Copy2(Job.GetInputStream, o)
    o.Close
    Label1.text ="Uitpakken dit duurt even/Extracting please wait a moment"
    Arc.AsyncUnZip(File.DirDefaultExternal,"data.zip" ,File.DirrootExternal & "/", "arc")
    Log("Arc" & Job.Success)
    Job.Release
    End Sub


i just needed to change the /storage/emulated/0/" to "/"

:)

Thnx Erel
 
Upvote 0
Top