这是我用来发送电子邮件的代码..但是当我运行它时,我添加的 TO 地址字符串没有显示在屏幕上..没有收到任何错误..
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setType(HTTP.PLAIN_TEXT_TYPE);
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {"ashwin.innodea@gmail.com"}); // recipients
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Email subject");
emailIntent.putExtra(Intent.EXTRA_TEXT, "Email message text");
startActivity(emailIntent);