Creating a zip file with some files on SDCard

后端 未结 2 2080
小蘑菇
小蘑菇 2021-02-06 01:56

As I posted a question a few days ago, I realized thet the stock eMail app couldn\'t send multiple files in attachment: https://stackoverflow.com/questions/5773006/sending-email

2条回答
  •  日久生厌
    2021-02-06 02:36

    ZipFile is a shortcut for the one file case. If you want to do multiple files, you need to work with a ZipOutputStream - just one click away from the javadoc page you quoted.

    And that javadoc also has an example on how to zip up multiple files.

提交回复
热议问题