I get a server response which provides us with HTML to be sent via gmail. This works fine on the iOS counterpart of the app, however the text just comes out as plain text in the Android application.
Here is an example part of the response we get:
<html>
<p style="color: #5987c6">My Shared Itinerary - John Smith.</p>
<p>Hello.</p>
<p>I want to share my Memmingen, DE trip itinerary with you.</p>
<p>Shared using
<span style="color: #5987c6">Blah</span> by BlahBlah
</p>
</html>
And I have tried doing the following:
final Intent shareIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));
shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
shareIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(new StringBuilder().append(testBody).toString()));
Where testBody is set to the example I gave above. I was just wondering is it possible to have this work straight away with the response from the server, or will I have to do some reformatting once it is received? Thanks for any help