Android Question Archiver: unzip files without their original path

Discussion in 'Android Questions' started by Facilauto Juan, Jan 21, 2014.

  1. Facilauto Juan

    Facilauto Juan Member Licensed User

    Hello there!

    I have made a sample app that uncompress a zip file in the app directory (Android/data/...).

    My problem is that the files unzipped has their original path, like c:\user profile\...

    How can I aboid that behavior?

    Thanks in advance.
  2. ggpanta

    ggpanta Member Licensed User

    You need to make sure the path is not present when you compress the files, the compression software should have an option to do that, note that relative paths are needed if you have sub directories in the zip.

    If you select the files in the root directory of the files you want to compress the software should add absolute paths, if it still adds them either find the option to dissable it or find another compression software.
  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