aryaxt
aryaxt

Reputation: 77596

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.

Upvotes: 5

Views: 2716

Answers (2)

Dalmas
Dalmas

Reputation: 26547

There are several similar questions, like these ones :

Toast after e-mail been sent in android

Get Mail Sent Notification in onActivityResult "Android"

And it doesn't look possible at all.

Upvotes: 2

silleknarf
silleknarf

Reputation: 1219

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

Upvotes: 3

Related Questions