Do you have both the permission to read and write contacts? Or just write.
Cheers, Justin Android Team @ Google On Oct 19, 6:13 pm, blim <[EMAIL PROTECTED]> wrote: > I've had no problem inserting a phone number but I have not been able > to update an existing phone number -- and I get no exceptions thrown > either. Can somebody please help me? > > I can update their name, e-mail, etc. but not their phone number. > > contentValues.put(Contacts.Phones.PERSON_ID, > personId); > contentValues.put(Contacts.Phones.TYPE, > Phones.TYPE_MOBILE); > contentValues.put(Contacts.Phones.NUMBER, > updatedInfo.getMobileNumber()); > > getContentResolver().update( > > Uri.withAppendedPath(Contacts.Phones.CONTENT_URI, personId), > contentValues, null, null); > > This just doesn't work and I have no idea why. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

