Html.fromHtml转换后不显示图像



我正在将我的 html 文本更改为字符串并发送到 android 中的电子邮件意图。 这是我的代码:

   Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
                            "mailto",(mail_name), null));
                    emailIntent.putExtra(Intent.EXTRA_SUBJECT, mail_subject);
                    emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml("<img src=\"http://i.imgur.com/9nyKcwl.jpg\" width=\"381\"><br>", new ImageGetter(), null));
                    startActivity(Intent.createChooser(emailIntent, "Send email..."));

在电子邮件部分,我没有收到任何图像。

\"转义反斜杠并"到似乎不正确的"。使用"<img src="http://i.imgur.com/9nyKcwl.jpg" width="381"><br>"

最新更新