Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:14:46+00:00 2026-06-04T18:14:46+00:00

MonoDroid appears to be missing the Android.Uitl.Zip namespace. Is there a way with Mono

  • 0

MonoDroid appears to be missing the Android.Uitl.Zip namespace.

Is there a way with Mono for Android to unzip an asset to the documents folder?

Here’s how in Java:
http://www.jondev.net/articles/Unzipping_Files_with_Android_(Programmatically)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:14:48+00:00Added an answer on June 4, 2026 at 6:14 pm

    I was trying to do the same thing and had to resort to a third-party library. Others have suggested SharpZipLib, but the license might be a problem if you’re not working on an open-source project. DotNetZip is also open-source but it has a more permissive license, and I was able to use the source code in Mono for Android without too many headaches. I’ve only used it to extract zips so far, so you may have to do some debugging if you want to use any of the other functionality.

    Here’s the procedure I used:

    1. Grab the source code from http://dotnetzip.codeplex.com/SourceControl/list/changesets.

    2. Copy the Zip, Zlib and CommonSrc directories into your Android Mono project. Only copy the .cs files and don’t copy any of the subdirectories.

    3. Delete the ZipFile.SaveSelfExtractor.cs file from the Zip directory.

    4. Comment out this line from the ValidateOutput function in ZipEntry.Extract.cs.

      outFileName = outFileName.Replace("/","\\");
      

    Once I did all that, extracting was pretty simple:

    using Ionic.Zip;
    Zipfile zip = ZipFile.Read(archivepath);
    zip.ExtractAll(extractpath);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A couple of firsts here - first Android app and first time using MonoDroid
There isn't something like MonoDroid [Acitvity()] attribute/annotation for Android Java SDK? While it is
Is it possible to create a simple web browser for Android by using Monodroid?
I have begun evaluating MonoDroid. (I've built many apps using Android+Eclipse) I created new-from-template
I have the following test code (based on standard monodroid HelloWorld) namespace TestGREF {
I have problems implementing the ItemizedOverlay on monodroid from this tutorial: http://developer.android.com/resources/tutorials/views/hello-mapview.html , Does
I'm experimenting for the first time, the Mono framework to develop applications to Android.
I want to use monodroid to develop an android application which runs as a
I am trying to use IronPython with monodroid (using a Android 4 phone) so
I'm working on a MonoDroid app, and there really isn't a good DI solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.