Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open email Activity and get result?

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

I am using an intent to open an Activity and allow the user to send an email. Is it possible to be notified of the result after the user is done with this activity?

Fro example be notified that email was sent, or cancel was clicked.

like image 583
aryaxt Avatar asked Dec 16 '11 18:12

aryaxt


Video Answer


1 Answers

Unfortunately, I don't think this is specified for any of the intents regarding email or text messaging and the like.

You can't be sure which Activity will end up handling your intent, and each Activity could return different resultCodes for the same logical outcome.

In my testing the text messaging app in the emulator returned zero no matter the outcome.

Answer is from this question

like image 55
silleknarf Avatar answered Nov 15 '22 11:11

silleknarf