Sorry I know its been a while since you posted this question, did you get anywhere with this?
I have a similar sort of issue and posted a question, I know there is a newer API but I'm supporting an existing library so I cannot go and change the underlying code. Many Thanks Praveen On Thursday, March 18, 2010 6:56:18 AM UTC, Rishabh wrote: > > Hi, > > I have written an application and added 2 contacts on emulator, but i > am not able to update their names on android 2.1, code is working on > android 1.6 platform with the following code. > > ContentValues contactValues = new ContentValues(); > contactValues.put(Contacts.People.NAME, firstName+" "+lastName); > getContentResolver().update(UpdateContactUri, contactValues, null, > null); > > In android 1.6 i am getting Uri for those two contacts are "content:// > contacts/people/1" and "content://contacts/people/2". > > but in 2.1 I am getting these values are "content://contacts/people/8" > and "content://contacts/people/9" and while updating its giving > "java.IllegalArgumentException, Empty values" exception. > > When i tried to put a static Uri like "content://contacts/people/1", > code was debugged sucessfully but contact was not updated. > > How can i resolve it, why i am not getting uri like 1.6 platform ? > > Thanks in advance... > > -- 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

