Android Not able to attach more than one file in Email Intent
I am succeeded to attach and send single file using mail Intent. But I cant attach two files, I have used the below code from some of the websites.

    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..."));

I wrote the files in world_readable mode. But I dont know why I am not able to attach the files. Please give me your suggestion..


Android Not able to attach more than one file in Email Intent
===

I am succeeded to attach and send single file using mail Intent. But I cant attach two files, I have used the below code from some of the websites.

    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..."));

I wrote the files in world_readable mode. But I dont know why I am not able to attach the files. Please give me your suggestion..

