android - 检测 Android 上已读的短信

标签 android events notifications sms broadcastreceiver

广播接收器是否可以捕获刚刚打开并正在阅读的新短信的事件?或者,可以通过捕获“新消息”通知离开通知栏的事件来完成此操作吗?我发现的唯一类似的问题是 this .

最佳答案

Is there an event that can be captured by a BroadcastReceiver for a new SMS that has just been opened and getting read?

有许多 SMS 客户端 - 您必须单独联系每个作者并询问他们。 Android 作为一个操作系统,没有 SMS 被“打开”或“读取”的概念。消息应用程序是 Android 开源项目的一部分,没有记录和支持的广播。

Alternatively, can this be done by capturing perhaps the event of the "new message" notification going away from the notification bar?

不,抱歉。

关于android - 检测 Android 上已读的短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8175759/

相关文章:

java - 如何将一个时区的本地时间保持为所有时区的时间?

c++ - SDL iOS 禁用事件泵

Javascript:iFrame 中的事件

PHP MYSQL,简单通知

Android:在 linux 应用程序和 Android 应用程序之间共享一个公共(public)文件夹

android - Mipmap 与可绘制文件夹

c# - 在构造函数中连接线程 C# 事件

ios - 通知后端推送通知已被禁用的最佳方式是什么?

ios - 当 iOS 10 中的 UNUserNotificationCenterDelegate 收到新通知时,如何删除以前发送的通知?

java - Android 播放 Vimeo 视频