App Inventor Extensions


Zip/Unzip Extension

See the App Inventor Extensions document about how to use an App Inventor Extension.

For questions about this extension or bug reports please start a new thread in the App Inventor community. Thank you.

For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.

Mar 24th, 2016: Initial Version 1 for App Inventor version ai2extensions7 and Companion version 2.36cdk1

Apr 20th, 2016: Version 2: password protection added

Aug 11th, 2016: Version 2a: avoid DX execution failed error: build each extension separately

Feb 6th, 2024: Version 3: library update to version 2.11.5, ErrorOccurred event added, IsEncrypted, IsValid, ApplicationSpecificDirectory methods added
Note: This version is not compatible with previous versions. To update first remove the old extension, then import the new one.

This extension is DEPRECATED. Please use another zip/unzip extension. Let me recommend the Simple Zip/Unzip Extension by BodyMindPower.

Description

Extension to zip/unzip files including password protection (AES 256 encryption).
Required permissions: android.permission.READ_EXTERNAL_STORAGE, android.permission.WRITE_EXTERNAL_STORAGE
Thank you Detlef for being the sponsor of this extension!
Thank you Edmark for being the sponsor of the password protection!
Thank you Alexandre for being the sponsor of version 3!
This extension uses the Zip4j library. Thank you Srikanth!

Methods


Zip a directory.
Optionally use password to protect the zip file using AES 256 Encryption.


Unzip file.
Use password to unzip AES 256 password protected files.
Note: the extension is only able to unzip directories with the correct directory structure, which have been zipped in the root directory of the internal sdcard. Thank you Horst.


Check if a zip file is valid. Note: This will only check for the validity of the headers and not the validity of each entry in the zip file.


Check if a zip file is password protected. In case an error occurred during checking the file, false will be returned.

Events


Event indicating that a Zip has finished.
The created zip file name will be provided in parameter zipFileName


Event indicating that an Unzip has finished.
Parameter fileList will contain the list of files, which have been extracted.


Event indicating that an error occurred.

Example Use


zip

unzip

For questions about App Inventor,
please ask in the App Inventor community.Thank you.

Terms and Conditions

  • Have fun and use this extension in your App Inventor projects! Pura Vida!
  • THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • This is is the only authorized place to download this extension. It is not allowed to host this extension somewhere else and offer it for others to download, be it on another website or market place or similar. The reason is, everybody should be able to have the opportunity to donate something in case you like my work. You are allowed to provide a link to this site, so others can download the extension here. You will find the most up to date version always here including documentation and usage examples. Thank you for your kind understanding.

Download


Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!

Donation amount:

or donate some mBTC to Bitcoin Address:
1Jd8kXLHu2Vkuhi15TWHiQm4uE9AGPYxi8
Bitcoin

Thank you! Taifun
 

Download TaifunZip extension (aix file)
Download Zip/Unzip test project (apk file)
Back to top of page ...


Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact