Perhaps this question has already been asked or duplicated by another question, but I did not have any solution for my search. Here are the links that I followed my question: Link1 Link2
Actually, my question is about sharing HTML text in the default intent of Android using ACTION_SEND. When I try to create a hyperlink to a URL with a different value, then it shows the plain text of the value. This is not available for reference.
Here is how I do it:
Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); String link = "https://www.android.com/"; String linkValue = "Click Me"; String body1 = "<a href=\"" + link + "\">" + link+ "</a>";
For body2: When I exchange text using Gmail, then in the letter the hyperlink text will look like plain text. Just "Click Me". I also tested it on a desktop browser. But there is the same thing. I checked this text in the Inspect Element (you can get the Inspect Element on the browser page, for example: Right-click on the browser page β In the pop-up window, click below. Inspect OR refer Check element ) and found that there was no tag for the hyperlink text.
For body1: It works, and I got the URL as a hyperlink in the email, but I got the URL as a hyperlink. I do not want to show the same URL in email, and not as body2 format. This format can be achieved by directly exchanging URLs in a body that does not require a tag.

So finally, my search: is there any way in Android to exchange hyperlink text with a different hint value and not a link (URL).
android html android-intent hyperlink gmail
Ready Android
source share