我正在开发一个应用程序来发送一封电子邮件与HTML数据作为电子邮件主题。 HTML中包含一个表格标签。但是当我收到邮件时,它看起来不像一张桌子。这里有什么问题?我使用的代码是邮件html表
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setType("text/plain");
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "" });
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Medicine Details");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
Html.fromHtml(htmldata));
startActivity(Intent.createChooser(emailIntent, "Email to Friend"));
HTML的表格标签目前还不支持。 http://stackoverflow.com/questions/12051125/android-how-to-create-table-in-the-email-body –
那么我怎样才能发送表格作为电子邮件 – pranavjayadev
利用div ..请参考我有答案张贴在这里。 http://stackoverflow.com/questions/12051125/android-how-to-create-table-in-the-email-body –