-
To add an account to a contact I use following code:
The Contact's are getting inserted, but only on the Device itself and not to the specified Account. If I insert the Contact's via my Custom Code, everything get's inserted into the mentioned Account:
|
Beta Was this translation helpful? Give feedback.
Answered by
vestrel00
Oct 2, 2023
Replies: 1 comment 8 replies
-
This might be regression caused by #325, which might only reproducible in the alpha build maybe. Could you try to reproduce the issue in |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see that you are adding your own custom account via
AccountManager.addAccountExplicitly
. The Account validation performed in this library uses theAccountsQuery
API to retrieve the visible Accounts that has a registered SyncAdapter for Contacts syncing; https://vestrel00.github.io/contacts-android/accounts/query-accounts/So, the issue could be that your custom Account is not being returned by the
AccountManager
because of visibility issues AND/OR it does not have a matching registered SyncAdapter type.Regardless, turning off the Account validation should (hopefully) allow you to insert RawContacts to the Account of your choice without issue 🤞
I do have a question. Does your custom Ac…