[android-developers] Re: Contacts photos does not work after insert

2009-09-01 Thread Michel Albert
Incidentally, I am also writing a small backup tool and had a problem that sounds very similar to yours. I figured out, that adding photos does not work properly on the emulator. I added a new menu option which, when clicked, added a photo from a binary stream to a hard-coded contact URI. When I

[android-developers] Re: Inserting Photo to Contacts

2009-09-01 Thread Michel Albert
On Aug 29, 2:49 pm, Michel Albert wrote: > Hmmm... I am trying the same thing. The method with "setPhotoData" > does indeed run without a hitch. Except that the photo does not show > on the contact when displaying it with the default "Contacts" > application. I

[android-developers] Re: Inserting Photo to Contacts

2009-08-29 Thread Michel Albert
Hmmm... I am trying the same thing. The method with "setPhotoData" does indeed run without a hitch. Except that the photo does not show on the contact when displaying it with the default "Contacts" application. I double checked both the Uri and the bytearray. Both are perfectly fine. The whole thi

[android-developers] Re: Inserting a new contact is not working

2009-08-29 Thread Michel Albert
Nevermind. I got it to work. The new way to insert contacts is: Uri newPersonUri = Contacts.People .createPersonInMyContactsGroup(getContentResolver(), values); On Aug 28, 4:45 pm, Michel Albert wrote: > I am trying to insert a new contact, but, even though I get a valid > UR

[android-developers] Inserting a new contact is not working

2009-08-28 Thread Michel Albert
I am trying to insert a new contact, but, even though I get a valid URI back, the Contacts do not appear in the "Contacts" application. Code: ContentValues values = new ContentValues(); values.put( People.NAME, contact.getString("name") ); Uri uri = getContentResolver().insert(People