1

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.

Durgesh
  • 291
  • 2
  • 19
Jai
  • 33
  • 7

1 Answers1

0

I have tried the same code. It does not work in the stock email app, not just in Samsung devices. The stock email app needs to be updated, which is unlikely to happen at the same pace as the Gmail app.

MV1
  • 64
  • 5
  • For me its working in Gmail App even in Samsung device. But not working on Samsung native email. – Jai May 04 '16 at 05:41
  • The gmail app works in all devices. They just wont add good features to the stock email app for obvious reasons. – MV1 May 04 '16 at 05:50