Android 如何不显示电子邮件正文?
我正在开发一个android应用程序,我想发送一封电子邮件 下面的代码运行良好,但我需要一件特殊的事情 此代码在用户选择电子邮件应用程序选项后,将打开显示电子邮件正文的所选客户端,以便用户单击发送 问题是,在电子邮件正文中,我想发送一个密码。因此,任何人都可以单击“重新发送”按钮,无需发送即可轻松查看密码 我想发送一封不显示正文的电子邮件,或者只发送而不显示电子邮件应用程序选项…(我已经保存了目标电子邮件) 有人知道怎么做吗Android 如何不显示电子邮件正文?,android,email,Android,Email,我正在开发一个android应用程序,我想发送一封电子邮件 下面的代码运行良好,但我需要一件特殊的事情 此代码在用户选择电子邮件应用程序选项后,将打开显示电子邮件正文的所选客户端,以便用户单击发送 问题是,在电子邮件正文中,我想发送一个密码。因此,任何人都可以单击“重新发送”按钮,无需发送即可轻松查看密码 我想发送一封不显示正文的电子邮件,或者只发送而不显示电子邮件应用程序选项…(我已经保存了目标电子邮件) 有人知道怎么做吗 final Intent emailIntent = new Inte
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("message/rfc822");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { mailRecover });
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, text);
App.this.startActivity(Intent.createChooser(emailIntent, getApplicationContext().getString(R.string.send_password_recover)));
有人知道怎么做吗
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("message/rfc822");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { mailRecover });
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, text);
App.this.startActivity(Intent.createChooser(emailIntent, getApplicationContext().getString(R.string.send_password_recover)));
编写自己的电子邮件客户端,可能使用Android的JavaMail端口
当您使用ACTION\u SEND
时,您要求其他人的应用程序代表您的应用程序发送某些内容。但是,您不能强制其他应用程序执行任何操作,例如不向用户显示电子邮件正文
有人知道怎么做吗
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("message/rfc822");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { mailRecover });
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, text);
App.this.startActivity(Intent.createChooser(emailIntent, getApplicationContext().getString(R.string.send_password_recover)));
编写自己的电子邮件客户端,可能使用Android的JavaMail端口
当您使用ACTION\u SEND
时,您要求其他人的应用程序代表您的应用程序发送某些内容。但是,您不能强制其他应用程序执行任何操作,例如不向用户显示电子邮件正文