How to Zip/Unzip your file or folder in android programmatically

Updated 21 February 2018

Save

In this blog, we will learn that how to zip and unzip your file or folder programmatically.

What is Zip file,

A computer file whose contents are compressed for storage or transmission. A ZIP file, like other archive file formats, is simply a collection of one or more files and/or folders but is compressed into a single file for easy transportation and compression.

How to Zip the files

These permissions are required to store data in your device storage.

create a simple zip file,

how to use it, Simple call this function,

now you have created a zip file in the Mobikul-Pos-db-backup folder.

How to Unzip the files

simply call above function,

Now you have successfully unzipped your file in external storage.

I hope this blog is helpful for you. If you have any doubt please ask in comments.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • ali
    • anchit (Moderator)
  • Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home