I have several raw contacts linked to one contact:
_id - 130
contact_id - 17434
account_type - com.google
aggregation_mode - 0
account_name - ...@gmail.com
display_name - ...
raw_contact_is_user_profile - 0
_id - 230
contact_id - 17434
account_type - com.whatsapp
aggregation_mode - 0
account_name - WhatsApp
display_name - ...
raw_contact_is_user_profile - 0
_id - 17217
contact_id - 17434
account_type - com.example
aggregation_mode - 0
account_name - Example
display_name - ...
raw_contact_is_user_profile - 0
They belong to different accounts, is there a solid way to get which one is the "main" raw contact? One possible solution is to check how many fields in DATA
column each contact has, but looks more like a hack.
Any help would be appreciated. Thanks.