khwarizmi Active Member Licensed User Longtime User Jul 22, 2019 #1 I have a big data file in my e learning application as a zip file (about 1 Gigabyte) which I put in the File.DirAssets directory, when the application run in the first time It must copy the zip file to File.DirRootExternal and then unzip it to the File.DirInternal directory using Archiver library and then delete the zip file. user should not obstruct this process and a progress bar must appear. So How can I: - Prevent user to obstruct the process. - Show a progress bar for the total process. Code: Copy File.Copy(File.DirAssets,"data.zip",File.DirRootExternal,"data.zip") Arc.UnZip( File.DirRootExternal, "data.zip", File.DirInternal , "/data") File.Delete(File.DirRootExternal,"data.zip") Thanks
I have a big data file in my e learning application as a zip file (about 1 Gigabyte) which I put in the File.DirAssets directory, when the application run in the first time It must copy the zip file to File.DirRootExternal and then unzip it to the File.DirInternal directory using Archiver library and then delete the zip file. user should not obstruct this process and a progress bar must appear. So How can I: - Prevent user to obstruct the process. - Show a progress bar for the total process. Code: Copy File.Copy(File.DirAssets,"data.zip",File.DirRootExternal,"data.zip") Arc.UnZip( File.DirRootExternal, "data.zip", File.DirInternal , "/data") File.Delete(File.DirRootExternal,"data.zip") Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2019 #2 Why use File.DirRootExternal? It requires a special permission. 1. Use File.CopyAsync. 2. Use Archiver.UnzipAsync. Upvote 0
Why use File.DirRootExternal? It requires a special permission. 1. Use File.CopyAsync. 2. Use Archiver.UnzipAsync.
khwarizmi Active Member Licensed User Longtime User Jul 22, 2019 #3 Thanks I Use that File.DirRootExternal to hide the data file from the user. Upvote 0
DonManfred Expert Licensed User Longtime User Jul 22, 2019 #4 kattah said: I Use that File.DirRootExternal to hide the data file from the user. Click to expand... The user can savely access the data on DirRootExternal. Just open a filebrowser and select the sdcard and you see the content. Upvote 0
kattah said: I Use that File.DirRootExternal to hide the data file from the user. Click to expand... The user can savely access the data on DirRootExternal. Just open a filebrowser and select the sdcard and you see the content.
khwarizmi Active Member Licensed User Longtime User Jul 22, 2019 #5 So, is there any way to hide data ? Upvote 0
E emexes Expert Licensed User Longtime User Jul 22, 2019 #7 kattah said: zip file (about 1 Gigabyte) which I put in the File.DirAssets directory Click to expand... This is probably a stupid question, but: aren't install packages zipped anyway? Upvote 0
kattah said: zip file (about 1 Gigabyte) which I put in the File.DirAssets directory Click to expand... This is probably a stupid question, but: aren't install packages zipped anyway?
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2019 #8 The assets files are zipped (the APK file is a zip file). However if you want to maintain the folders structure or avoid having many files in the project then it makes sense to add them as a single zip file. Upvote 0
The assets files are zipped (the APK file is a zip file). However if you want to maintain the folders structure or avoid having many files in the project then it makes sense to add them as a single zip file.