答案 0 :(得分:1)
使用以下代码
final Intent shareIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "The Subject");
shareIntent.putExtra(
Intent.EXTRA_TEXT,
Html.fromHtml(new StringBuilder()
.append("<p><b>Some Content</b></p>")
.append("<small><p>More content</p></small>")
.toString())
);
答案 1 :(得分:0)
是的我认为是这样,尝试使用Html.fromHtml()方法获取您的格式并设置text / HTML类型:
final Intent superIntent = new Intent(FirstScreen.this, SecondScreen.class);
superIntent.setType("text/html");
superIntent.putExtra("html", Html.fromHtml(body));
..