gpt4 book ai didi

HTC Thunderbolt 上的 Android 电子邮件多个附件问题

转载 作者:IT老高 更新时间:2023-10-28 22:18:50 29 4
gpt4 key购买 nike

我的情况很奇怪。

我正在尝试使用以下代码发送带有多个附件的电子邮件。

Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND_MULTIPLE );
// emailIntent.setType( "plain/text" );
emailIntent.setType( "application/octet-stream" );
...
....
emailIntent.putParcelableArrayListExtra( Intent.EXTRA_STREAM, uris );

这很好用,隐式 Intent 机制显示了很多选项,例如 Gmail、Skype、消息传递等。

问题在于默认邮件客户端没有显示在 HTC Thunderbolt 上(但可以在包括 HTC Incredible S 在内的其他设备上使用)。

如果我尝试使用 Intent.ACTION_SEND 发送单个附件,则会显示默认邮件客户端。我已经尝试将内容类型设置为 text/plain、appliation/octet-stream、message/rfc282 等,但没有任何效果。

我在这里错过了什么?

最佳答案

我遇到了同样的问题,我通过使用 http Mime 库作为多部分表单实体来修复它。

这里是文件的链接。 http://hc.apache.org/httpcomponents-client-4.3.x/httpmime/apidocs/org/apache/http/entity/mime/HttpMultipart.html

关于HTC Thunderbolt 上的 Android 电子邮件多个附件问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9461067/

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