dimanche 24 juillet 2016

Email with HTML content is not working on Samsung native Email app

I am using below code for sending the email.

Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "You are invited for a meeting");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml(mailBody));
startActivity(Intent.createChooser(shareIntent, "Share meeting Info"));

*mailBody in EXTRA_TEXT is a HTML content with <a> tag and string message

Its working perfectly with Gmail app but anchor tag is not working in native email client in Samsung devices.

Aucun commentaire:

Enregistrer un commentaire