0

I need to add files on a zip package but on the line code zipFile.addFiles(filesToAdd, parameters)" the "addFiles() appears in red, can anyone help me, please?

I'm using:

image reference:

https://lh6.googleusercontent.com/HTfDOT1yZBb7k-oxLulCYukhBMv7xksHj2UhK-_YXSAkNmpQKkgdrSCJpa4T3cs1vWMNnHBWPxwkbKM=w1342-h513-rw

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96

1 Answers1

1

Zip file format is "native" in Java. Reading and writing those files are implemented out of the box by the java toolkit http://www.mkyong.com/java/how-to-compress-files-in-zip-format/

No need of add-ons.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
eduyayo
  • 2,020
  • 2
  • 15
  • 35
  • Oh thanks. :) you know if you can set a password to the zip file? – Fernando A. León May 19 '15 at 15:38
  • 3
    Zip Encryption is not supported by Java inbuilt zip implementation. Zip4j supports Zip encryption/decryption. I believe you have a library import issue. I suggest you have a look at [this question](http://stackoverflow.com/questions/8248196/how-to-add-a-library-project-to-a-android-project) – Srikanth Reddy Lingala May 21 '15 at 10:21