采用Android Intent.ACTION_SEND发送电子邮件 [英] Using Android Intent.ACTION_SEND for sending email
本文介绍了采用Android Intent.ACTION_SEND发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用 Intent.ACTION_SEND
来发送电子邮件。然而,当我打电话意图
它显示选择发送邮件,发送邮件,并且还通过蓝牙发送。我希望它只是显示选择发送电子邮件。我怎样才能做到这一点?
解决方案
意图电子邮件=新的意图(android.content.Intent.ACTION_SEND);
email.setType(应用程序/八位字节流);
编辑:
你可以尝试设置类型为消息/ RFC822
和
试试这个......
I'm using Intent.ACTION_SEND
to send an email. However, when I call the intent
it is showing choices to send a message, send an email, and also to send via bluetooth. I want it to only show choices to send an email. How can I do this?
解决方案
Intent email = new Intent(android.content.Intent.ACTION_SEND);
email.setType("application/octet-stream");
EDIT:
You could try setting type to "message/rfc822"
as well.
try this....
这篇关于采用Android Intent.ACTION_SEND发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文