added contact does not show up in Contacts in android
<pre><code>    ArrayList&lt;ContentProviderOperation&gt; operationList = new ArrayList&lt;ContentProviderOperation&gt;();

    ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI);
    builder.withValue(RawContacts.ACCOUNT_NAME, account.name);
    builder.withValue(RawContacts.ACCOUNT_TYPE, account.type);
    builder.withValue(RawContacts.SYNC1, username);
    operationList.add(builder.build());

    builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
    builder.withValueBackReference(CommonDataKinds.StructuredName.RAW_CONTACT_ID, 0);
    builder.withValue(Data.MIMETYPE, CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE);
    builder.withValue(CommonDataKinds.StructuredName.DISPLAY_NAME, name);
    operationList.add(builder.build());

    builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
    builder.withValueBackReference(Data.RAW_CONTACT_ID, 0);
    builder.withValue(Data.MIMETYPE, "vnd.android.cursor.item/vnd.org.c99.SyncProviderDemo.profile");
    builder.withValue(Data.DATA1, username);
    builder.withValue(Data.DATA2, "SyncProviderDemo Profile");
    builder.withValue(Data.DATA3, "View profile");
    operationList.add(builder.build());
</code></pre>

<p>followed by a </p>

<pre><code>mContentResolver.applyBatch(ContactsContract.AUTHORITY, operationList);
</code></pre>

<p>Creates a new contact, but does not show in the contacts, but If i filter by contacts in google and search for that I am able to see the contact.</p>

<p>Can anyone tell me why, thanks in advance</p>
