getAccountsByType does not return anything in marshmallow

前端 未结 2 1532
旧巷少年郎
旧巷少年郎 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

提交回复
热议问题