This code works without problems.
String text2 = new StringBuilder() .append("<p><b>Some Content</b></p>") .append("<small><p>More content</p></small>") .toString(); Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "", null)); emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name) + ": " + getString(R.string.task_list) + " " + title); emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(text2)); startActivity(Intent.createChooser(emailIntent, getString(R.string.send_email))); but if you change the html code text2 to
String text2 = new StringBuilder() .append("<p><b>Some Content</b></p>") .append("<table border=\"1\">\n" + " <caption>Title</caption>\n" + " <tr>\n" + " <th>1 column</th>\n" + " <th>2 column</th>\n" + " </tr>\n" + " <tr><td>text1</td><td>text2</td></tr>\n" + " <tr><td>text1</td><td>text2</td></tr>\n" + " </table>") .toString(); then html formatting does not work, maybe the problem is in the tag itself or not?
\nremove to start, if you need a transfer, use<br>- Suvitruf ♦