如何调用系统的发邮件系统 我是想调出系统的邮件系统界面,然后设置收件人.这样可以不呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //系统邮件系统的动作为android.content.Intent.ACTION_SEND Intent email = new Intent(android.content.Intent.ACTION_SEND); email.setType("plain/text"); emailReciver = new String[]{"[email protected]", "[email protected]"}; emailSubject = "你有一条短信"; emailBody = sb.toString(); //设置邮件默认地址 email.putExtra(android.content.Intent.EXTRA_EMAIL, emailReciver); //设置邮件默认标题 email.putExtra(android.content.Intent.EXTRA_SUBJECT, emailSubject); //设置要默认发送的内容 email.putExtra(android.content.Intent.EXTRA_TEXT, emailBody); //调用系统的邮件系统 startActivity(Intent.createChooser(email, "请选择邮件发送软件")); email.setType("plain/text");参数错误,应是:email.setType("text/plain"); 我是那么写的可是出现了一个对话框说是没有程序支持此操作,这是怎么回事,能不能帮我解答下,我的QQ379953191 email:[email protected]谁知道告诉我一下好吧,谢谢 email.setType("plain/text");纯文本传输email.setType("text/plain");流的形式传输 华为 android系统gps接收卫星信号问题 【让2D和3D完美结合】view上如何叠加 glSurfaceView? android怎么才能获得联通/移动的手机号 android androidpn推送 关于ANDROID编译的疑问呀! 请问谁有张泽华老师android视频的PPT和笔记 求帮小弟看看 在相册中选着照片和压缩存到本地 用于显示和上传 有用过友推分享组件的嘛?遇到了技术问题 魅蓝手机狂打日志,,怎么破,怎么破 哪位大侠给指点一下,按钮设置外观的问题 rokon 中拖动body问题
Intent email = new Intent(android.content.Intent.ACTION_SEND);
email.setType("plain/text");
emailReciver = new String[]{"[email protected]", "[email protected]"};
emailSubject = "你有一条短信";
emailBody = sb.toString();
//设置邮件默认地址
email.putExtra(android.content.Intent.EXTRA_EMAIL, emailReciver);
//设置邮件默认标题
email.putExtra(android.content.Intent.EXTRA_SUBJECT, emailSubject);
//设置要默认发送的内容
email.putExtra(android.content.Intent.EXTRA_TEXT, emailBody);
//调用系统的邮件系统
startActivity(Intent.createChooser(email, "请选择邮件发送软件"));
参数错误,应是:
email.setType("text/plain");
纯文本传输
email.setType("text/plain");
流的形式传输