【发布时间】:2014-04-15 14:43:52
【问题描述】:
我正在开发一个实时应用程序。当他/她通过电子邮件分享我们的文本时,我正在为用户分配一个特定的点。但是,我怎样才能识别出该用户已经发送了一封电子邮件??
我正在使用以下代码,
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL, new String[]{});
email.putExtra(Intent.EXTRA_SUBJECT, "Test");
email.putExtra(Intent.EXTRA_TEXT, "Hey there! Please download the fun app");
email.setType("message/rfc822");
startActivity(Intent.createChooser(email, "Select Email Chooser"));
如何获得用户发送电子邮件的响应?
【问题讨论】:
-
有点相关,只获取电子邮件客户端,这样做:stackoverflow.com/questions/2197741/…