电子邮件意图不显示的选择器 [英] Email Intent not showing the chooser

查看:97
本文介绍了电子邮件意图不显示的选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的启动发送电子邮件:

I'm using the following to initiate the sending of an email:

Intent i = new Intent(Intent.ACTION_SEND);
i.setType("message/rfc882"); 
i.putExtra(Intent.EXTRA_EMAIL, new String[]{s});
startActivity(Intent.createChooser(i, "Send mail..."));

这是我遇到的问题是,(我的电话),它拉让我选择哪一个电子邮件客户端,我想发送的消息具有了Gmail的撰写窗口代替。

The problem that I'm having is that (on my phone) it pulls up Gmail's Compose window instead of allowing me to choose which email client I'd like to send the message with.

我这样做不对,还是默认的电子邮件客户端只是不回复电子邮件发送意图?

Am I doing this wrong, or does the default email client just not respond to email send intents?

推荐答案

这可能不是消息/ rfc882 意图。尝试文本/纯相反,如果可以的话,我敢pretty的确认工作。

It might not respond to message/rfc882 Intents. Try text/plain instead, if you can, as I'm pretty sure that works.

这篇关于电子邮件意图不显示的选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆