title: How to add contacts programmatically in Android?
body: <p>I have tried this but Contacts were not added!</p>
  
  <pre><code>ContentResolver cr = this.getContentResolver();
  ContentValues cv = new ContentValues();
  cv.put(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, "sai1");
  cv.put(ContactsContract.CommonDataKinds.Phone.NUMBER, "9640954335");
  cv.put(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE);
  cr.insert(ContactsContract.RawContacts.CONTENT_URI, cv);
  </code></pre>