For example, I have four columns: first_name, last_name, phone_numberand picture. Somewhere in my code is:
ContentValues values = new ContentValues();
values.put(MyPerson.FIRST_NAME, "Ted");
values.put(MyPerson.LAST_NAME, "Johnson");
values.put(MyPerson.PHONE_NUMBER, "111-111-1111");
values.put(MyPerson.PICTURE, "file://tedpicture.jpeg");
getContentResolver().update(tedUri, values, null, null);
Can I run something like:
ContentValues values = new ContentValues();
values.put(MyPerson.PHONE_NUMBER, "222-222-2222");
getContentResolver().update(tedUri, values, null, null);
And expect the columns first_name, last_nameand picturewill have the same values as when they were first set. Or do I need to fill in the columns as well first_name, last_nameand picture?
source
share