检测到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);更多推荐
发布评论