gpt4 book ai didi

android - 在电子邮件中发送内联 HTML 图像

转载 作者:太空宇宙 更新时间:2023-11-03 11:22:53 26 4
gpt4 key购买 nike

<分区>

我想通过电子邮件发送 HTML 内容。我通过 intent 打开 gmail 并使用以下代码显示撰写页面。

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/html");
emailIntent.setPackage("com.google.android.gm");
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "subject here");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml("html <b>content</b>"));
startActivity(Intent.createChooser(emailIntent, "Email to Friend"));

但问题在于,我无法发送内联图像。怎么做到的?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com