Android无法在电子邮件中附加多个文件

Android无法在电子邮件中附加多个文件,android,Android,我已成功使用邮件意图附加和发送单个文件。但我不能附加两个文件,我使用了下面的一些网站的代码 final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE); emailIntent.setType("plain/text"); File file1 = getApplicationContext().getFileStreamPath("file1.csv"); File file2 = ge

我已成功使用邮件意图附加和发送单个文件。但我不能附加两个文件,我使用了下面的一些网站的代码

final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);
emailIntent.setType("plain/text");

File file1 = getApplicationContext().getFileStreamPath("file1.csv");
File file2 = getApplicationContext().getFileStreamPath("file2.csv");

ArrayList<Uri> uris = new ArrayList<Uri>();
uris.add(Uri.fromFile(file1));
uris.add(Uri.fromFile(file2));

emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
final Intent emailIntent=新意图(android.content.Intent.ACTION\u SEND\u MULTIPLE);
emailIntent.setType(“纯/文本”);
文件file1=getApplicationContext().getFileStreamPath(“file1.csv”);
文件file2=getApplicationContext().getFileStreamPath(“file2.csv”);
ArrayList URI=新的ArrayList();
add(Uri.fromFile(file1));
add(Uri.fromFile(file2));
emailIntent.putParcelableArrayListExtra(Intent.EXTRA\u流,URI);
startActivity(Intent.createChooser(emailIntent,“发送邮件…”);

我以世界可读模式编写了这些文件。但是我不知道为什么我不能附上这些文件。请给我你的建议。

我不明白你为什么不在上面搜索,请查看此链接,谢谢你的回复。。我几乎找遍了所有的东西。。我只是按照这些页面上找到的解决方案来遵循代码。。但是我收到的邮件没有附件。。其实我不知道我错在哪里。。