I need some portion of my email body to be in bold. I tried many solutions but didn't get the result. Can anyone point out what went wrong in my code?
String body = "<html><body><b>" + getName() + "</b></body></html>";
String myURL = "http://www.google.com"
Intent intent = new Intent(Intent.ACTION_SEND).setType("text/plain")
.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.email_subject, getName()))
.putExtra(Intent.EXTRA_EMAIL, new String[] {context.getString(R.string.email_address)})
.putExtra(Intent.EXTRA_TEXT, new StringBuilder(Html.fromHtml(body))
.append("\n")
.append(myURL);
return Intent.createChooser(intent, null);
Thanks in advance.