android - 如何知道在电子邮件撰写 Activity 中是否按下了发送/放弃/取消按钮 - Android

标签 android

我已经使用 Intent.ACTION_SEND 启动了电子邮件撰写 Activity

有人可以告诉我当用户发送、丢弃或取消电子邮件时如何获得确认/回调吗?

最佳答案

你不能。电子邮件应用程序没有返回标准化 Intent 来响应 ACTION_SEND。最好的方法是提供用于自己创建电子邮件的表单,并且仅在用户选择实际发送时才发送 Intent 。

关于android - 如何知道在电子邮件撰写 Activity 中是否按下了发送/放弃/取消按钮 - Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6288420/

相关文章:

Android:从内容 URI 获取文件 URI?

java - 打开 Android 图片库

android - 使用 com.android.support :recyclerview-v7:26. 0.0-beta2 时 attr/colorError 未找到错误

java - 调用 super 抛出 "super is not an expression"

android - SpeechRecognizer stopListening() 不工作

Android RatingBar 显示超过 5 颗星

android - 无法在 Android Studio 3.0 上使用 Instant Run 运行应用程序

android - 如何防止键盘处于 Activity 状态时标题栏隐藏?

安卓NDK。 Eclipse 项目属性中没有 C/C++ 部分

android - OKHttp默认的重试策略机制是什么? (安卓)