 <p>While inserting a contact into RAW Contact table, provide A AccountType and accountName.</p> <pre><code> final ContentProviderOperation.Builder newContact = ContentProviderOperation .newInsert(RawContacts.CONTENT_URI); newContact.withValue(RawContacts.ACCOUNT_TYPE, rawContact.accountType); newContact.withValue(RawContacts.ACCOUNT_NAME, rawContact.accountName); newContact.withValue(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_DISABLED); </code></pre>