AccountManager does not add custom account in Android N preview

前端 未结 3 1864
太阳男子
太阳男子 2021-02-19 18:49

I have implemented a sync adapter in my app which requires an account to be added in the device account settings. I followed the same approach given in the Android docs. It work

3条回答
  •  渐次进展
    2021-02-19 19:45

    I have totally the same issue. I could fix it by manually going to the application settings and enabling Сontacts permission. I don't know how, but after that I was able to use addAccountExplicitly() method without issues. I even disabled that permission again and cleared app data but it still was working properly...

    After app was reinstalled - problem appeared again.

提交回复
热议问题