Anyone else have problem with update() in ContentResolver?
I have some extremely simple code--I just want to update the PHOTO
column of the People content provider.
private void updatePhoto(int id, String uri)
{
ContentValues cv = new ContentValues();
cv.put(People.PHOTO, uri);
int x =
getContentResolver().update(People.CONTENT_URI,cv,People._ID
+"="+id, null);
Log.d("PhotoUpdater",x+" row(s) updated.");
}
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
updatePhoto(14,"http://www.homepage.com/brandon.jpg");
}
I am 100% confident I have a contact with ID 14, so why is my row not
updated?? Bug??
James
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---