Trivial: Get Confirmation of Email Sent in Android

Trivial: Get confirmation of email sent in android

That really depends on the app that is launched by your Intent. It could be the Gmail app, it could be the Email app, or it could be any third-party app. Because of this, there is no 100% reliable way to determine whether the user actually pressed Send or not.

The only thing you can do is check if the Gmail and Email apps return anything relevant when called via startActivityForResult and rely on that. But beware that is not reliable because, again, there could be third party apps. Also, since these apps do not specify publicly what they return, they might change that at some point without any notice.

Android - Get a Response of Sent Email

So this cannot be done. Since any application can respond to the Intent there is no guarantee of any result code or result intent.

See:

Get Mail Sent Notification in onActivityResult "Android"

See:

Trivial: Get confirmation of email sent in android

My own personal tests on ICS are showing both email clients returning 0 for the resultCode regardless of whether the user presses back or send.

Android e-mail sending verification

This cannot be done. Since any application can respond to the Intent there is no guarantee of any result code or result intent.

See:

Get Mail Sent Notification in onActivityResult "Android"

See:

Trivial: Get confirmation of email sent in android

My own personal tests on ICS are showing both email clients returning 0 for the resultCode regardless of whether the user presses back or send.

Getting the recepient count from email sent in Android

That action does not support startActivityForResult(), sorry.



Related Topics



Leave a reply



Submit