Android Question Progress Bar

Discussion in 'Android Questions' started by kattah, Jul 22, 2019.

  1. kattah

    kattah Member Licensed 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.

    File.DirRootExternal, ""File.DirInternal , "/data")
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why use File.DirRootExternal? It requires a special permission.

    1. Use File.CopyAsync.
    2. Use Archiver.UnzipAsync.
  3. kattah

    kattah Member Licensed User

    Thanks :)

    I Use that File.DirRootExternal to hide the data file from the user.
  4. DonManfred

    DonManfred Expert Licensed User

    The user can savely access the data on DirRootExternal. Just open a filebrowser and select the sdcard and you see the content.
  5. kattah

    kattah Member Licensed User

    So, is there any way to hide data ?
  6. Erel

    Erel Administrator Staff Member Licensed User

    kattah likes this.
  7. emexes

    emexes Well-Known Member Licensed User

    This is probably a stupid question, but: aren't install packages zipped anyway?
  8. Erel

    Erel Administrator Staff Member Licensed User

    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.
    emexes likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice