pedr0
pedr0

Reputation: 3011

Email View doesn't show interpreted HTML

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

Upvotes: 0

Views: 662

Answers (1)

chikka.anddev
chikka.anddev

Reputation: 9629

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**

Upvotes: 1

Related Questions