使用 Android Intent.ACTION_SEND 发送电子邮件 [英] Using Android Intent.ACTION_SEND for sending email
本文介绍了使用 Android Intent.ACTION_SEND 发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Intent.ACTION_SEND
发送电子邮件.但是,当我调用 intent
时,它显示了发送消息、发送电子邮件以及通过蓝牙发送的选项.我希望它只显示发送电子邮件的选项.我怎样才能做到这一点?
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");
您也可以尝试将类型设置为 "message/rfc822"
.
试试这个...
这篇关于使用 Android Intent.ACTION_SEND 发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文