Not able to update contact name in emulator 2.1

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Not able to update contact name in emulator 2.1

Postby rishabh » Tue Mar 16, 2010 10:58 am

Hi,

I am tring to update name of existing contact in android 2.1 emulator with the following code but always getting "java.lang.IllegalArgumentException: Emplty values" Exception.

ContentValues contactValues = new ContentValues();
contactValues.put(People.NAME, "rishabh");
getContentResolver().update(UpdateContactUri, contactValues, null, null);

UpdateContactUri is the uri of existing contact with id 4. It is working on emulator 1.6 but not on 2.1.

One more thing i need to ask how can i access indivisual fields of Name(first, middle, last) and Address(Street, city, state, zip, country) in 2.1
rishabh
Freshman
Freshman
 
Posts: 2
Joined: Tue Mar 16, 2010 10:54 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 5 guests