下面这段代码放在方法中直接调用就OK。Activity
<span style="font-size:18px;">//ContactsContract.CALLER_IS_SYNCADAPTER-->表示将所有与联系人有关联的数据库都删除了 ContentResolver cResolver1=this.getContentResolver(); Uri uri4=ContactsContract.RawContacts.CONTENT_URI.buildUpon().appendQueryParameter(ContactsContract.CALLER_IS_SYNCADAPTER, "true").build(); cResolver1.delete(uri4, null, null); </span>