创建一个zip文件与SD卡上的一些文件 [英] Creating a zip file with some files on SDCard
问题描述
正如我前几天发布了一个问题,我意识到泰德股票电子邮件应用程序不能发送附件多个文件:<一href="http://stackoverflow.com/questions/5773006/sending-email-with-multiple-attachement-fail-with-default-email-android-app-but">Sending电子邮件与多个attachement:失败使用默认的电子邮件Android应用程序,但可以与Gmail
As I posted a question a few days ago, I realized thet the stock eMail app couldn't send multiple files in attachment: Sending Email with multiple attachement: Fail with default Email Android app, but OK with Gmail
不幸的是,我得到了它没有答案,所以需要找到一个解决办法。
Unfortunately, I got no answer on it, so need to find a workaround.
用户必须选择列表中的某些PDF格式,并通过电子邮件与股票应用程序发送给他们。由于多个连接失败,我将创建所需的全部文件的zip文件,然后发送这一独特的文件。
The user has to select in a list some pdf and send them by email with stock app. As the multiple attachment fail, I will create a zip file with all the requested files and sent this unique file.
所以,奥斯可我做了一些文件的归档文件的SD卡?
So, hoz can I make an archive with some files on SDCard?
我目前发现是这样的:<一href="http://developer.android.com/reference/java/util/zip/ZipFile.html">http://developer.android.com/reference/java/util/zip/ZipFile.html
公开的ZipFile(文件档案)
public ZipFile (File file)
自:API级别1构造一个新的 ZipFile中的指定文件。
Since: API Level 1 Constructs a new ZipFile with the specified file.
但我不知道如何使用这个使用多个文件。
But I don't understand how to use this with multiple files.
感谢了很多,
推荐答案
这也许文章将帮助你。
这篇关于创建一个zip文件与SD卡上的一些文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!