In my Android app, I am able to programmatically open up the default email editor with To, Subject, and Message using the following:
Intent emailIntent=new Intent(Intent.ACTION_SEND);
emailIntent.putExtra(Intent.EXTRA_EMAIL, toemail);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(Intent.EXTRA_TEXT, body);
emailIntent.setType("text/plain");
emailIntent.setClassName("com.android.email", "com.android.email.activity.MessageCompose");
startActivity(emailIntent);
This works great, but I need to wait in my app until the user finishes with the email screen and also know whether the email was sent or discarded.
Anyone know how to do this?