2

I am trying to implement email compose in the Android app using Kotlin, I want HTML formatted text in email compose. I don't know for what reason I am not getting Bold text even using tags. Just an FYI my
tag is working properly. Please help me out with this. Following is my code. Thanks in advance.

val intent = Intent(Intent.ACTION_SEND)enter code here
intent.putExtra(Intent.EXTRA_SUBJECT, "Email Invite")
 intent.putExtra(
                Intent.EXTRA_TEXT,
                Html.fromHtml(StringBuilder()
                .append("<b>Hello!</b> <br/><br/>")
                .append("<b>Welcome to the app!</b> <br/>")
                .toString())
 )

0 Answers0