This is related to my previous feature-request (thanks again for that) about contact-groups and their associated accounts.
My scenario is as follows: I load an existing contact from Android using the ContactStore. Now I would like to add a group-membership. How do I know which ones to offer to the user? If the user wants to create a new one, how do I know in which account I need to store it?
All of that works for creating a new account, ofc, because there I (or the user) need to specify in which account to store the contact. But for an existing contact, that information is missing.
If I understood it correctly, there is no "one single" account on the Contact class because you potentially aggregate the information over multiple accounts. Is it possible to identify something like a "main" account? Or providing a list of the involved accounts (in that case I could do a best-effort guess and e.g. prefer a google account over whatsapp or something like that)?
This is related to my previous feature-request (thanks again for that) about contact-groups and their associated accounts.
My scenario is as follows: I load an existing contact from Android using the ContactStore. Now I would like to add a group-membership. How do I know which ones to offer to the user? If the user wants to create a new one, how do I know in which account I need to store it?
All of that works for creating a new account, ofc, because there I (or the user) need to specify in which account to store the contact. But for an existing contact, that information is missing.
If I understood it correctly, there is no "one single" account on the Contact class because you potentially aggregate the information over multiple accounts. Is it possible to identify something like a "main" account? Or providing a list of the involved accounts (in that case I could do a best-effort guess and e.g. prefer a google account over whatsapp or something like that)?