title: How to show an image in the email body?
body: <p><strong><em>Note: I don't want to attach the Image to the Email</em></strong></p>
  
  <p>I want to show an image in the email body,</p>
  
  <p>I had tried the HTML image tag <code>&lt;img src=\"http://url/to/the/image.jpg\"&gt;"</code> and I got output as you can see in this my question on <a href="https://stackoverflow.com/questions/5244472/how-add-image-in-email-body">How to add an image in email body</a>, so I tired <code>Html.ImageGetter</code>.</p>
  
  <p>It does not work for me, it also gives me the same output, so I have a doubt is it possible to do this,</p>
  
  <p>My code</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_SEND);
  i.putExtra(Intent.EXTRA_EMAIL,new String[] {"abc@gmail.com"}); 
  i.putExtra(Intent.EXTRA_TEXT,
      Html.fromHtml("Hi &lt;img src='http://url/to/the/image.jpg'&gt;",
      imgGetter,
      null));
  
  i.setType("image/png");
  startActivity(Intent.createChooser(i,"Email:"));
  
  
  private ImageGetter imgGetter = new ImageGetter() {
  
      public Drawable getDrawable(String source) {
          Drawable drawable = null;
              try {
                  drawable = getResources().getDrawable(R.drawable.icon);
                  drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),
                      drawable.getIntrinsicHeight());
              } catch (Exception e) {
                  e.printStackTrace();
                  Log.d("Exception thrown",e.getMessage());
              } 
              return drawable;
      }
  };
  </code></pre>
  
  <p><strong>UPDATE 1:</strong> If I use the <code>ImageGetter</code> code for <code>TextView</code> I am able to get the text and image but I am not able to see the image in the email body</p>
  
  <p>Here is my code: </p>
  
  <pre><code>TextView t = null;
  t = (TextView)findViewById(R.id.textviewdemo);
  t.setText(Html.fromHtml("Hi &lt;img src='http://url/to/the/image.jpg'&gt;",
      imgGetter,
      null));
  </code></pre>
  
  <p><strong>UPDATE 2:</strong> I had used bold tag and anchor tag as i shown below these tag are working fine , but when i used img tag i can able to see a square box which say as OBJ</p>
  
  <pre><code> i.putExtra(Intent.EXTRA_TEXT,Html.fromHtml("&lt;b&gt;Hi&lt;/b&gt;&lt;a href='http://www.google.com/'&gt;Link&lt;/a&gt; &lt;img src='http://url/to/the/image.jpg'&gt;",
          imgGetter,
          null));
  </code></pre>