title: Can't send image attachment with Gmail from my application
body: <p>For some reason Gmail even though it shows the PNG attachment in it's compose screen the attachment is never sent.  Not obvious to me what I am doing wrong here.</p>
  
  <pre><code>        view.setDrawingCacheEnabled(true);
          Bitmap b = view.getDrawingCache();
          try {
              boolean r = b.compress(CompressFormat.PNG, 95, new FileOutputStream(outputFile));
          } catch (FileNotFoundException e) {
              e.printStackTrace();
          }
          final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
          emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          emailIntent.setType("image/png");
          emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{emailTo});
          emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
          emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailText);
          Uri u = Uri.fromFile(outputFile);
          emailIntent.putExtra(Intent.EXTRA_STREAM, u);
          this.startActivityForResult(emailIntent, 0);
  </code></pre>