Not able to update contact name in emulator 2.1
Posted
by Rishabh
on Stack Overflow
See other posts from Stack Overflow
or by Rishabh
Published on 2010-03-15T06:41:14Z
Indexed on
2010/03/15
6:49 UTC
Read the original article
Hit count: 314
android
|android-emulator
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
© Stack Overflow or respective owner