将彩信标记为以编程方式读取
是否有办法更新彩信/短信数据库以将消息从已读标记为未读,反之亦然?我尝试过使用 URI,但它们对我不起作用。
Is there anyway to update the MMS/SMS database to mark the message from read to unread and vice versa? I've tried using URI but they don't work for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面的代码可以帮助我更新彩信是否被标记为已查看。
要将其用于 SMS 消息,只需将以下“content://mms/”替换为“content://sms/”即可。
此外,您可能需要在 Android 清单文件中拥有 SMS 权限之一。
快乐编码:)
The code below works for me to update whether a MMS message was marked as viewed or not.
To use this with SMS messages, just replace the following "content://mms/" with this "content://sms/".
Also, you may need to have one of the SMS permissions in your android manifest file.
Happy coding :)