I create a group programatically as
private void createGroup() {
ArrayList<ContentProviderOperation> ops = new
ArrayList<ContentProviderOperation>();
ops.add(ContentProviderOperation
.newInsert(ContactsContract.Groups.CONTENT_URI)
.withValue(ContactsContract.Groups.TITLE, "SRI").build());
try {
getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops);
} catch (Exception e) {
Log.e("Error", e.toString());
}
}
If i try to add a contact group in this
manner(manually/programatically) on Samsung Europa (Galaxy5), it
succeeds, but if i Add a contact and link to this group, the contact
does not show in Contacts Tab but only in Groups tab under that group.
If i remove the Contact from that group, then it shows under contacts
tab.Why is this happening ?
Regards,
Alok
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en