title: Uploading Image in Email Via Intent Using ImageSliders Image
body: <p>I have one <code>ImageSlider</code> and i have one button,on Button Click event i want to send an Email with image attach from <code>Imageslider</code>.</p>
  
  <p>I did code like this but it's not working.</p>
  
  <pre><code>mail.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          Intent emailIntent = new Intent(Intent.ACTION_SEND);                
          emailIntent.setType("application/image");
          emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Hi");
          emailIntent.putExtra(Intent.EXTRA_TEXT, "");
          String imageFileName = array.get(0).getAsJsonObject().get("images").getAsJsonArray().get(0).getAsJsonObject().get("image").getAsString();
          emailIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse(imageFileName));
          startActivity(Intent.createChooser(emailIntent, "Email via..."));
      }
  });
  </code></pre>
  
  <p>It must show me an image in the email,but it Shows me Toast Message </p>
  
  <blockquote>
    <p>Unable to Attach File </p>
  </blockquote>