I am developing an android app in which i have a sqlite table containing two columns(Product,price). I want to insert this table in the email body and send an email.I read in some docs that table tag is not supported in android so i tried using div tag in string.xml but is not working. I can send a mail with texts in email body but could'nt bring table format. I used the below code,
String formattedText = getString(R.string.htmlFormattedText);
Intent emailIntent2 = new Intent(android.content.Intent.ACTION_SEND);
String[] recipients2 = new String[]{"xxx@gmail.com", "",};
emailIntent2.putExtra(android.content.Intent.EXTRA_EMAIL, recipients2);
emailIntent2.putExtra(android.content.Intent.EXTRA_SUBJECT, "Sample mail");
emailIntent2.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml(formattedText));
emailIntent2.setType("text/html");
startActivity(Intent.createChooser(emailIntent2, "Send mail client :"));
How can i show the table format in email body.If it is not possible please tell me what is the alternate for this. Thanks in advance