Email issue (send hyperlink in email body) android

前端 未结 3 818
情深已故
情深已故 2020-12-06 02:59
mIntent = new Intent(Intent.ACTION_SEND);
mIntent.putExtra(Intent.EXTRA_SUBJECT, getString(\"\"));

mIntent.setType(\"text/html\");  
Uri myUri = Uri.parse(\"http://         


        
3条回答
  •  佛祖请我去吃肉
    2020-12-06 03:42

    If you make the EXTRA_TEXT a full html document by enclosing the source text in 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.

提交回复
热议问题