I'm trying to embed an HTML reference to an image to include in an HTML email.
I used a SpannableString to successfully create an email that has a http href in it, as shown below. But I have not been able to add an image into the body of the email. Other programs add something like this directly to the body of the email: <img src="http://thumbs1.ebaystatic.com/pict/ 1804380093048080_1.jpg"> This doesn't work for me - the text is a hot link. I've tried various permutations of using SpannableString but can't get the image to appear. Any tips for this would be muchly appreciated. Here's the body of an email message I've successfully created: <p>Check out this item I found on eBay:</p> <p><a href="http://cgi.ebay.com/DEALS-cps-QA-bid-test-do-not-bid-4- BID- BIN_W0QQitemZ250528416791QQcategoryZ30120QQcmdZViewItem">DEALS cps QA bid test do not bid 4 BID + BIN</a></p> Here's the code that successfully creates the above email message: String email_subject = getResources().getString (R.string.default_share_subject).trim(); final Intent i = new Intent(Intent.ACTION_SEND); i.setType("message/rfc822"); i.putExtra(Intent.EXTRA_SUBJECT, email_subject); SpannableString item = new SpannableString (mFoundItem.getTitle().Value("")); item.setSpan(new URLSpan(mFoundItem.GetItemUrl().Value ("")), 0, item.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); SpannableStringBuilder email_body = new SpannableStringBuilder(getResources().getString (R.string.default_share_text) + "\n\n"); email_body.append(item); i.putExtra(Intent.EXTRA_TEXT, email_body); startActivity(Intent.createChooser(i, getResources ().getString(R.string.share_chooser))); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en