我这里有一个奇怪的情况。
我正在尝试使用以下代码发送带有多个附件的电子邮件。
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 );
这工作正常,隐式意图机制显示了很多选项,如 Gmail、Skype、消息传递等。
问题是默认的邮件客户端不会出现在 HTC Thunderbolt 上(但可以在包括 HTC Incredible S 在内的其他设备上使用)。
如果我尝试使用 发送单个附件Intent.ACTION_SEND
,则会显示默认邮件客户端。我尝试将内容类型设置为 text/plain、appliation/octet-stream、message/rfc282 等,但都没有。
我在这里想念什么?