Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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.
Have you tried LearnNowOnline?
subject: Set MIME type text/html