getAccountsByType does not return anything in marshmallow

前端 未结 2 1533
旧巷少年郎
旧巷少年郎 2021-02-14 01:45

Now this is odd...

Using

AccountManager.newChooseAccountIntent(null, null, new String[] {\"com.google\"}, null, null, null, null);

does

相关标签:
2条回答
  • 2021-02-14 02:11

    According to this g+ post https://plus.google.com/+BrendonSled/posts/jdrHS3GC7c6 permission GET_ACCOUNTS is now listed as dangerous and user has to allow it

    0 讨论(0)
  • 2021-02-14 02:18

    For anyone getting here, the real answer is here

    in short, you need to use AccountManager.newChooseAccountIntent() (ref)

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