Skip to content

Can I set contact photo using a url? #195

Answered by vestrel00
lau1944 asked this question in Q&A
Discussion options

You must be logged in to vote

@lau1944, I've provided complete documentation on how to get/set/remove Contact/RawContact photos in #10. Here is the link to the howto page; https://github.com/vestrel00/contacts-android/blob/main/howto/howto-get-set-remove-contact-raw-contact-photo.md

I added a link to this issue at the bottom of that howto page. I also provided an answer to the question. I will copy and paste it here. I hope this answers your question 😁

Issue #110: Can photo be set using a uri instead of bytes and bitmaps?

No and yes. The core APIs provided in this library only provides functions that the Contacts Provider natively supports. This means setting Contact or RawContact photo only using bytes (and other sim…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vestrel00
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #110 on March 07, 2022 22:05.