It will be hard. There is no default return value for sending email, and depending on your preferences, mail can be sent using the email application, the Gmail application, or one of many third-party email applications. Most likely, they all differ in how they handle the end of letters.
As for your question in general, you can use startActivityForResult() to start the action and then continue after it completes, with a return value indicating how everything went. However, I am sure that most email applications will not give you the proper result.
I am tempted to say that you may have to process the sending of the letter yourself, i.e. write a simple function that connects to SMTP and sends mail. I am sure that there are many libraries that handle all the hard work.
(You can, of course, experiment with startActivityForResult first - MAYBE, the most common email applications give you a return value.)
EboMike
source share