Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29758

How can I add a hyperlink to this email being created in Android app?

$
0
0

I would like to add a hyperlink to an email message which I will be creating as below.How could this be completed? I have tried various attempts to set as HTML which have been unsuccesful.

            String message =  "\n\n <a href=\"www.apple.com\">Click Here to Open</a>";            Intent email = new Intent(Intent.ACTION_SEND);            email.putExtra(Intent.EXTRA_EMAIL, new String[]{ selectedEmail});            email.putExtra(Intent.EXTRA_SUBJECT, subject );            email.putExtra(Intent.EXTRA_TEXT, message));            email.setType("message/rfc822");            startActivity(Intent.createChooser(email, "Choose an Email client:"));

Viewing all articles
Browse latest Browse all 29758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>