title: Android AVD Mail app is not sending out attachments
body: <p>I am sending a mail with logs results through this code:</p>
  
  <pre><code>    Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);
      emailIntent.setType("text/plain");
      emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, emailAddressList);
      emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Android Log");
      emailIntent.putParcelableArrayListExtra(android.content.Intent.EXTRA_STREAM, uris);
      try {
          startActivity(Intent.createChooser(emailIntent,"Send..."));
          finish();
      }
      catch (android.content.ActivityNotFoundException e) {
          new AlertDialog.Builder(SendActivity.this)
          .setIconAttribute(android.R.attr.alertDialogIcon)
          .setTitle(R.string.cannotSend)
          .setMessage(R.string.appNotFound)
          .setPositiveButton(R.string.ok, null)
          .show();
      }
  </code></pre>
  
  <p>The Email app in the emulator (trget Jelly Bean) is this one:</p>
  
  <p><img src="https://i.stack.imgur.com/Lk4yH.png" alt="enter image description here"></p>
  
  <p>When sending it shows this, which has the destination, the subject and the attachments:</p>
  
  <p><img src="https://i.stack.imgur.com/qkhBZ.png" alt="enter image description here"></p>
  
  <p>The oubox shows the message has attachments:</p>
  
  <p><img src="https://i.stack.imgur.com/53aOV.png" alt="enter image description here"></p>
  
  <p>But the received message has no attachmetns ar all:</p>
  
  <p><img src="https://i.stack.imgur.com/Q3Dit.png" alt="enter image description here"></p>
  
  <p>My only guess is that the Email app has failed, but I don't know if it is my fault, and if I can correct it, or if there is another mail client I can install in the AVD who will do the job.</p>
  
  <p>PS: By the way, sending those mails went really slow on the AVD, when I tested to compose and send a text only mail it was dispatched much more quickly.</p>
  
  <p><strong>Edit</strong><br>
  I had an idea, could it be that the problem is caused because the attachements are from temporary files? And they are linked to the mail rather than copied, and by the time the Email app gets to send them, they no longer exists?</p>
  
  <pre><code>attachment = File.createTempFile("logs", "txt");
  out = new FileOutputStream(attachment);
  out.write(logs.getBytes());
  out.close();
  uris.add(Uri.fromFile(attachment));
  
  attachment = File.createTempFile("sysinfo", "txt");
  out = new FileOutputStream(attachment);
  out.write(getSystemInfo());
  out.close();
  uris.add(Uri.fromFile(attachment));
  </code></pre>