Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have root, and I tried running the zip command from shell, but zip is not found. I think Android doesn't come with zip. How can I install zip on Android?

share|improve this question

migrated from stackoverflow.com May 7 '11 at 11:18

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers 3

androzip might help you with that

share|improve this answer
add comment

The ZipOutputStream class will help you. There's an example of creating a zip file in the documentation.

share|improve this answer
    
I read that example, but it doesn't show how to recursively zip an entire folder consisting of multiple files and subdirectories. –  Jeremy Lee May 4 '11 at 3:26
add comment

I don't really understand your question, but if you are developing an app and you want to zip files with it, the following article might help you: http://www.jondev.net/articles/Zipping_Files_with_Android_(Programmatically)

share|improve this answer
    
Thanks, but it doesn't show how to recursively zip an entire folder consisting of multiple files and subdirectories. That's why I'm interested in a Linux zip command that I can execute from shell, thus skipping the programming of the ZipOutputStream method. –  Jeremy Lee May 4 '11 at 3:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.