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
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
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
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
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
5 matches
Mail list logo