title: Android Contacts Group changes
body: <p>I have two contacts group on my device like <code>Work</code>, <code>Home</code>. I have to add  contact on that particular group. Like <code>Add john(Contacts name0) to Work group</code>.</p>
  
  <p>I have used following Code:  </p>
  
  <pre><code>ContentValues values = new ContentValues();
                  values.put(ContactsContract.CommonDataKinds.GroupMembership.RAW_CONTACT_ID,
                         Integer.parseInt(contactId));
                  values.put(
                          ContactsContract.CommonDataKinds.GroupMembership.GROUP_ROW_ID,
                          "3");
                  values
                          .put(
                                  ContactsContract.CommonDataKinds.GroupMembership.MIMETYPE,
                                  ContactsContract.CommonDataKinds.GroupMembership.CONTENT_ITEM_TYPE);
  
                context.getContentResolver().insert(
                         ContactsContract.Data.CONTENT_URI, values);
  </code></pre>
  
  <p>But I get the following output: <code>content://com.android.contacts/data/714</code></p>
  
  <p>Please guide me, what am I doing wrong?</p>
  
  <p>Thanks in advance!</p>