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
Fatal Exception: Firebase-Messaging-Intent-Handle -- Java.Lang.Noclassdeffounderror
Multiple Typeface in Single Textview
Apache Http Client or Urlconnection
Reusing Views in Android Listview with 2 Different Layouts
Android: Cannot Perform This Operation Because the Connection Pool Has Been Closed
How to Update Xml File from Another Xml File Dynamically
How to Implement the Android Actionbar Back Button
How to Create JSON Object Using String
Transparent Blurry View Which Blurs Layout Underneath
Android - Get Value from Hashmap
Add Object to Arraylist at Specified Index
What's the Best Practice to Round a Float to 2 Decimals
How to Encode String (Use Encrypt Messagedigest in Java) to Base64 String in Swift