本文介绍了如何从Android中一个特定的号码删除彩信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在android系统删除特定电话号码的彩信。我该怎么办呢?
我使用的内容:// MMS短信/通话来获得传递消息MMS的名单,并与下面的查询尝试:
I want to delete a MMS message of a particular phone number in android. How can i do it? I am using content://mms-sms/conversations to get list of MMS messaged and tried with the following query:
this.getContentResolver().delete(
Uri.parse("content://mms-sms/conversations/" + ThreadId),
"address=?", new String[] { "contact number" });`
但它仅适用于短信和没有彩信。谁能告诉我,我们能做些什么来删除特定的MMS?
But it works only for sms and not for mms. Can someone tell me what can we do to delete particular MMS?
感谢
推荐答案
请检查下面的详细教程链接读,写,删除和更新的Android彩信
Please check below detailed Tutorial link for Read,Write,Delete and update MMS in Android
的
也试试这个
Uri msgUri = ContentUris.withAppendedId(Mms.Inbox.Content_Uri,"1");
SqliteWrapper.delete(this, getContentResolver(), msgUri, null, null); (or) getContentResolver().delete(msguri, null, null);
这篇关于如何从Android中一个特定的号码删除彩信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!