mIntent = new Intent(Intent.ACTION_SEND);
mIntent.putExtra(Intent.EXTRA_SUBJECT, getString(""));
mIntent.setType("text/html");
Uri myUri = Uri.parse("http://www.Google.com/");
mIntent.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml("<a href=\""+myUri+"\">Link</a>"));
startActivity(android.content.Intent.createChooser(mIntent, "Email:"));
I tried the above code but at receiver side I can not get Link. it convert into normal text..
If you make the EXTRA_TEXT a full html document by enclosing the source text in
<html><body>
and<\body><\html>
it will work properly with GMail, that is, you can have a proper description for the link.Unfortunately, it won't work with all email apps. For example it does not work with the Samsung email app on my Galaxy S3. My conclusion is that you cannot safely do this, which is very annoying.
CapDroid's answer does not look like it solves the problem, as per scottytab's comment.
Try;
If that doesn't work try adding;
References; fromHtml, EXTRA_HTML_TEXT
Try this one.. It is working for me..