我有一个webview,显示从服务器获取的html内容。它工作正常。但是,如果我尝试使用意图通过电子邮件将此内容发送给某人。其余的html在电子邮件客户端中正确显示,但不显示图像而是显示框中的“obj”。
当收到相同的电子邮件时,框中的“obj”仍然是图像。我现在可以通过点击“obj”打开图像。
是否可以在电子邮件中显示图像。
图像是html的一部分,不是从设备添加的。
我已经搜索过,但其他解决办法似乎解决了我的问题。
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/html");
i.putExtra(Intent.EXTRA_SUBJECT, this.news.getNewsTitle());
i.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(this.htmlContentDetails));
try {
startActivity(Intent.createChooser(i, "Sending mail..."));
} catch (android.content.ActivityNotFoundException e) {
Toast.makeText(this, "There are no email clients installed.",
Toast.LENGTH_SHORT).show();
}