Hi
I've got the following problem:
I want to update my contacts from a XML-File with the following lines
of code
ContentValues werte = new ContentValues();
werte.put(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME,
_sFamilyName);
werte.put(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME,
_sGivenName);
werte.put(ContactsContract.CommonDataKinds.StructuredName.MIDDLE_NAME,
_sMiddleName);
werte.put(ContactsContract.Data.MIMETYPE,
ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE);
ContentResolver contacts = _context.getContentResolver();
int nRows = contacts.update(ContactsContract.Contacts.CONTENT_URI,
werte, ContactsContract.Data._ID + "=?", new String[]
{String.valueOf(_nContactID)});
the RowCount is 1, so it seems that it's updating something. But when
I check the Contact nothing happend.
What do I make wrong?
--
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