Receive notification of the sent letter in onActivityResult "Android"

I'm starting email activity

// send mail

final int SENT_MAIL = 1;

startActivityForResult (Intent.createChooser (me, "Send Mail"), SENT_MAIL);

and in

onActivityResult (int req, int res, Intent data)

I am trying to find the result of sending an email to confirm whether my email was sent or was dropped by the user. I get null for Intent data

ie data = null

in onActivityResult (int req, int res, Intent data), res is always 0.

T. res = 0;

Please let me know what can be done in this case?

Thanks in advance!

+6
android android-intent email android-manifest
source share
1 answer

You need to contact the developers of anything that can ever answer your Intent (which you don't see above) and ask them if they startActivityForResult() for such an Intent . Most likely, little can be done, and in any case, you will have complex tracking of all possible Android email clients. If they do not support startActivityForResult() , although you can still call this method, you will not get meaningful results in onActivityResult() .

Therefore, what you want is impractical, IMHO.

+3
source share

All Articles