Skip to content

How to set ContactsContract.RawContacts.SOURCE_ID on insert? #299

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

You must be logged in to vote

@marrale, I created an issue for adding support for your use case; #300. It will be included in the next release (0.3.1).

In the meantime, you should still be able to use this library right now to make your life easier. If you want to adopt this library now instead of waiting for the next release, you can do this in order to insert a new RawContact with the source id provided from your backend...

  1. Insert a new RawContact into your Account with all the data (name, emails, phones, etc) from your backend using this library. The RawContact's source id will be null at this point.
  2. Then, update the source id of the newly inserted RawContact using your own code.

Or, to make sure a new RawContact…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@marrale
Comment options

@vestrel00
Comment options

@marrale
Comment options

Comment options

You must be logged in to vote
5 replies
@marrale
Comment options

@vestrel00
Comment options

@marrale
Comment options

@vestrel00
Comment options

@marrale
Comment options

Answer selected by marrale
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
question Further information is requested
2 participants