代码如下:
//删除短信 getContentResolver().delete(Uri.parse("content://sms/#"),"address=?", new String[]{"10001"}); getContentResolver().delete(Uri.parse("content://sms/#"),"body=?", new String[]{"10001"}); getContentResolver().delete(Uri.parse("content://sms/#"),"body like ?", new String[]{"%A10%"});
需要权限:
<uses-permission android:name="android.permission.WRITE_SMS"/>
原文:http://www.cnblogs.com/code4app/p/3760746.html