title: Attachment is not coming in mail programmatically
body: <p>I am attaching a TEXT file to Email with code : </p>
  
  <pre><code>Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto",
                                      "abc@gmail.com", null));
  
      emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Report");
  
      emailIntent.putExtra(Intent.EXTRA_TEXT, prepareBodyMail());
      File root = Environment.getExternalStorageDirectory();
      File file = new File(root, "/MyFolder/report.txt");
  
      Uri uri = Uri.fromFile(file);
      emailIntent.putExtra(Intent.EXTRA_STREAM, uri);
      startActivity(Intent.createChooser(emailIntent, "Pick an Email provider"));
  </code></pre>
  
  <p>This code works perfectly with <strong>Gmail, Email</strong> and other apps </p>
  
  <p>But this is not attaching file with <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.inbox&amp;hl=en"><strong>INBOX</strong></a> application by Google</p>
  
  <p>Only Body and subject are coming without any attachment</p>
  
  <p>I have reported this problem to Google Groups at <a href="https://productforums.google.com/forum/#!topic/inbox/0K1ky2uWxEY;context-place=forum/inbox">Inbox Problem</a></p>
  
  <p>Can anybody help what I am missing in code?</p>