I am using mail composer in andorid and trying to send html data as below using intent:
String body = "<html>" +
"<head>" +
"</head>" +
"<body> " +
"<img src = \"http://www.html-5-tutorial.com/images/atitlan.jpg\" >" +
"</body> " +
"</html> ";
final Intent shareIntent2 = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));
shareIntent2.putExtra(Intent.EXTRA_SUBJECT, "The Subject");
shareIntent2.putExtra(
Intent.EXTRA_TEXT,
Html.fromHtml(body)
);
startActivity(shareIntent2);
But, Image does not displaying in message body.
What might be the problem ?