I use the code below to send an e-mail to may e-mail address. When i click the send button, there's a toast msg saying Message send..., however i don't have it in the code. It must be default. My problem is that this is saying that the message is to be sent but does not say anything about that it was sent. I know it cannot be checked if it arrived, but there should be a msg saying it' s sent. I hope it shows an error when it is not sent, but the users do not know this.
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_EMAIL , new String[]{"something@gmail.com"});
i.putExtra(Intent.EXTRA_SUBJECT, "subject of email");
i.putExtra(Intent.EXTRA_TEXT , "body of email");
try {
startActivity(Intent.createChooser(i, "Send mail..."));
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(About.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
thanks