Re: [android-developers] updating a contact in 2.x Contacts API

2010-04-19 Thread Timo Prill
yeah, you are right, i was totally confused... already found the error myself some time later.. i mixed up contact ID and data-row ID.. volcano-ash seemed to influence me this morning ;) it now updates correctly using: oerations.add(ContentProviderOperation.newUpdate( Contact

Re: [android-developers] updating a contact in 2.x Contacts API

2010-04-19 Thread Dmitri Plotnikov
What's the _id here? It should be the data row id, not the contact id. Also, you shouldn't specify the mime type in an update statement - it is not updatable. Cheers, Dmitri On Apr 19, 2010 2:44 AM, "Timo Prill" wrote: > hi all, > > i got a problem updating a contact's details. > i use the follo

[android-developers] updating a contact in 2.x Contacts API

2010-04-19 Thread Timo Prill
hi all, i got a problem updating a contact's details. i use the following code to update the contact name: "operations" is a ArrayList of ContentProviderOperation. operations.add(ContentProviderOperation.newUpdate( ContactsContract.Data.CONTENT_URI) .with