Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/200.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android中的邮件应用程序会弹出消息传递活动_Android - Fatal编程技术网

Android中的邮件应用程序会弹出消息传递活动

Android中的邮件应用程序会弹出消息传递活动,android,Android,我用Android编写了一个电子邮件应用程序,它使用Action\u SENDintent。当我调用startActivity(I)时我的意图是,随着电子邮件应用程序,消息应用程序也出现了。但当我为电子邮件编写应用程序时,为什么邮件应用程序也应该弹出呢。 关于这个概念,我可以解释清楚吗 Intent sendIntent = new Intent(Intent.ACTION_SEND); String[] mailto = recipients; sendIntent.putExtra(Inte

我用Android编写了一个电子邮件应用程序,它使用
Action\u SEND
intent。当我
调用startActivity(I)时我的意图是,随着电子邮件应用程序,消息应用程序也出现了。但当我为电子邮件编写应用程序时,为什么邮件应用程序也应该弹出呢。
关于这个概念,我可以解释清楚吗

Intent sendIntent = new Intent(Intent.ACTION_SEND);
String[] mailto = recipients;
sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
String[] mailCc = recipientsToBeCopied;
sendIntent.putExtra(Intent.EXTRA_CC, mailCc);
String[] mailBcc = recipientsToBeBlindCopied;
sendIntent.putExtra(Intent.EXTRA_BCC, mailBcc);
String subject = strSubject;
sendIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
String body = strBody;
sendIntent.putExtra(Intent.EXTRA_TEXT, body);
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "send mail.."));
有人能告诉我使用
createChooser
的原因吗?还有这个应用程序弹出消息活动的原因吗