0
我正尝试使用以下代码发送邮件。我想让我的标题和文本变成粗体,我使用HTML标签,但它的点工作,任何人都可以帮忙吗?我也想让b日期在身体屏幕的中心。如何在Android的电子邮件正文中使用HTML标签或加粗标题的正文?
Intent msg = new Intent(Intent.ACTION_SEND);
String[] address = new String[] { "" };
msg.putExtra(Intent.EXTRA_EMAIL, address);
String subject = "";
subject = "iVillage: "+storyTitle;
msg.putExtra(Intent.EXTRA_SUBJECT, subject);
// This next line puts in the body of the message
String[] Content = new String[] { "HEllo There" };
msg.setType("text/html");
msg.putExtra(Intent.EXTRA_TEXT, "<b><i>"+storyTitle+" \n\n "+storyPubDate+"</b></i> \n\n"+storyURL+"\n\n...\nSent From from Android");
startActivity(msg);
你试过这个吗?它不工作... – Arslan 2010-11-30 06:45:41