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