title: Email/share-intent, set file extension of attached file
body: <p>Is it possible to set the file extension of the attached intents? </p>
  
  <p>This code works for me but the attaced images has file names like flag_be and is not recognzied by the reciving email client as an image, because of lack of the extension I guess. The attachments are valid and not corrupt if just change the name. </p>
  
  <pre><code>Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);
  emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "This is my text");
  emailIntent.putExtra(Intent.EXTRA_SUBJECT,"This is the subject!");
  emailIntent.setType("image/png");
  
  ArrayList&lt;Uri&gt; uris = new ArrayList&lt;Uri&gt;();
  uris.add(Uri.parse("android.resource://" + getPackageName() + "/drawable/flag_be"));
  
  emailIntent.putExtra(Intent.EXTRA_STREAM, uris);
  
  startActivity(emailIntent);
  </code></pre>
  
  <p>As soon as I try to do something smart like, it fails: </p>
  
  <pre><code>uris.add(Uri.parse("android.resource://" + getPackageName() + "/drawable/flag_be.png"));
  uris.add(Uri.parse("android.resource://" + getPackageName() + "/drawable-xhdpi/flag_ag.png"));
  </code></pre>
  
  <p>etc...</p>
  
  <p>The Gmail-client on the Android fails to send the attachment.</p>
  
  <p>Have I missed something?</p>
  
  <p>Regards, Jan</p>