检测到MMS已被删除(Detect that MMS has been deleted)

编程入门 行业动态 更新时间:2024-10-11 07:27:01
检测到MMS已被删除(Detect that MMS has been deleted)

有没有办法检测到从本机消息传递客户端删除了MMS消息? 现在我有一个观察者注册了Mms.CONTENT_URI但是没有调用onChange 。

Is there a way to detect that an MMS message has been deleted from the native messaging client? Right now I have an observer registered for Mms.CONTENT_URI but onChange is not being called.

最满意答案

为Mms.Intents.CONTENT_CHANGED_ACTION注册BroadcastReceiver并从收到的intent中获取已删除消息的Uri :

Uri u = (Uri)intent.getExtras().get(Mms.Intents.DELETED_CONTENTS);

Register BroadcastReceiver for Mms.Intents.CONTENT_CHANGED_ACTION and get Uri of the deleted message from the received intent:

Uri u = (Uri)intent.getExtras().get(Mms.Intents.DELETED_CONTENTS);

更多推荐

本文发布于:2023-08-07 02:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1459118.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:已被   检测到   deleted   MMS   Detect

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!