views:

136

answers:

1

I need a small code snippet which unzips a few files from a given .zip file and gives the seperate files according to the format they were in the zipped file. Please post your knowledge and help me out. Thank you so much.

+1  A: 

Android has build-in Java API. Check out java.util.zip package.

The class ZipInputStream is what you should look into. Read ZipEntry from the ZipInputStream and dump it into filesystem/folder. Check similar example to compress into zip file.

Ankit Jain