In android, you cant embed it as an inline image in a mail, but u can send
it as an attachment .
On Wednesday, October 27, 2010 3:06:58 PM UTC+5:30, Zarah wrote:
>
> Hi guys,
>
> Hope you can help me with my question.
>
> I am trying to embed an image in an email body. I am trying to use
> the ImageGetter to retrieve the bitmap, and send my Intent like this:
>
> Intent intent = new Intent(Intent.ACTION_SEND);
> intent.setType("text/html");
> intent.putExtra(Intent.EXTRA_SUBJECT,
> getResources().getString(R.string.recommend_vid_title));
> intent.putExtra(Intent.EXTRA_TEXT , Html.fromHtml(emailBody, imgGet,
> null));
>
> When viewing the draft using the GMail app, all I see is [OBJ] instead
> of the bitmap.
>
> I tried setting the email contents to a TextView just to check if it
> is correctly formatted and the image shows up fine. Is this a problem
> with the GMail app or am I doing something stupid?
>
> I am testing using the Samsung Galaxy S. Hope someone can help. :)
> Thanks in advance!
>
>
> Best regards,
> Zarah.
>
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.