i am sending a simple email and in the body i put a Link .
My problem is the link is not recognize as Link but only as String
Here the code:
intent.putExtra(Intent.EXTRA_EMAIL,new String[]{ "[email protected]"});
Uri myUri = Uri.parse("http://www.stackoverFlow.com/");
intent.putExtra(Intent.EXTRA_TEXT, "Check out this great application:"+"\n"+ myUri);
intent.putExtra(Intent.EXTRA_SUBJECT, "Traveler's Pharmacy");
intent.setType("text/plain");
startActivity(Intent.createChooser(intent, "Choose Email Client"));
startActivity(intent);
Thanks for helping
Change this two lines:
intent.setType("text/html");
and
intent.putExtra(Intent.EXTRA_TEXT,
Html.fromHtml("Check out this great application: <a href=\""+ myUri+
"\">Link</a>"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With