ACTION_SEND力电子邮件发送邮件发送、电子、ACTION_SEND

由网友(奢侈dē溫柔)分享简介:每次我创建一个动作从我的应用程序发送电子邮件,它会提示很多选择,包括QR客户端... every time i create an action for sending an email from my app, it prompts to many options including a QR client......

每次我创建一个动作从我的应用程序发送电子邮件,它会提示很多选择,包括QR客户端...

every time i create an action for sending an email from my app, it prompts to many options including a QR client...

有没有办法强制通过电子邮件客户端只发送?

Is there a way to force sending via email clients only?

code发送的电子邮件

String rec[] = { owner.email };
i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(android.content.Intent.EXTRA_EMAIL, rec);
i.putExtra(android.content.Intent.EXTRA_SUBJECT, "RE: " + desc);
i.putExtra(android.content.Intent.EXTRA_TEXT,
        "nnnSent from Mojo for Android");
startActivity(i);

截图供会发生什么,当我推出这个

Screenshot for what happens when I launch this

推荐答案

尝试的setType 消息/ RFC822 ,而不是文本/纯

Try to setType message/rfc822 instead of text/plain