我是想调出系统的邮件系统界面,然后设置收件人.这样可以不呢?

解决方案 »

  1.   

    //系统邮件系统的动作为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, "请选择邮件发送软件"));
      

  2.   

    email.setType("plain/text");
    参数错误,应是:
    email.setType("text/plain");
      

  3.   

    我是那么写的可是出现了一个对话框说是没有程序支持此操作,这是怎么回事,能不能帮我解答下,我的QQ379953191 email:[email protected]谁知道告诉我一下好吧,谢谢
      

  4.   

    email.setType("plain/text");
    纯文本传输
    email.setType("text/plain");
    流的形式传输