0

I want compile an email with HTML content which users can see before send it.

I use an

Intent email = new Intent(Intent.ACTION_VIEW); 

But I cannot see an HTML interpreted, see the image below: alt text

alt text

There is a way to show an HTML interpreted email content?

Thanks a lot

pedr0
  • 2,941
  • 6
  • 32
  • 46

1 Answers1

1

you have to set type for intent :see this method:http://developer.android.com/reference/android/content/Intent.html#setType%28java.lang.String%29


you ahve to add also this line for it shows like html for ur data:


emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(body));**strong text**
chikka.anddev
  • 9,569
  • 7
  • 38
  • 46
  • Its not working. Please see my question http://stackoverflow.com/questions/9718952/html-display-in-email-body-android – Debarati Mar 15 '12 at 11:44