How do I get my custom account type to show up in the android contacts app?

后端 未结 1 1727
轮回少年
轮回少年 2021-01-02 13:41

I\'ve created a custom account type and I can successfully create contacts of that type in the android ContactsContract ContentProvider. But I\'m having a lot of trouble fig

1条回答
  •  自闭症患者
    2021-01-02 14:39

    I finally figured out what the issue was.

    In my sync-adapter element the android:contentAuthority attribute was set to a custom content authority for my own contacts ContentProvider, which is technically what I use to query and write contact data. But it turns out to get your contacts to show up in the default contacts app this attribute must be set to "com.android.contacts".

    0 讨论(0)
提交回复
热议问题