Android Question Progress Bar

khwarizmi

Active Member
Licensed User
Longtime User
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.

B4X:
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
 

khwarizmi

Active Member
Licensed User
Longtime User
Thanks :)

I Use that File.DirRootExternal to hide the data file from the user.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I Use that File.DirRootExternal to hide the data file from the user.
The user can savely access the data on DirRootExternal. Just open a filebrowser and select the sdcard and you see the content.
 
Upvote 0
Top