This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Android and the fly likes Set MIME type text/html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Set MIME type text/html" Watch "Set MIME type text/html" New topic

Set MIME type text/html

Steven Mann
Ranch Hand

Joined: Apr 05, 2010
Posts: 55
This code is supposed to work, but it doesn't. It renders correctly inside the android email client, but when I receive the email, it appears as plain text. How do I set the MIME type(Content-type: text/html)?

If love was a sandwich, I'd eat it.
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

I have had problems with this too; and if I remember correctly it works only with Gmail client on Android phones.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
Steven Mann
Ranch Hand

Joined: Apr 05, 2010
Posts: 55
I think you are right: the solution was just to post the raw link in the body string: apparently text/plain will render links properly. I would like to make this sticky so we can collect other solutions, as this is a rather annoying problem.
subject: Set MIME type text/html
It's not a secret anymore!