getAccountsByType does not return anything in marshmallow

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

    For anyone getting here, the real answer is here

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

提交回复
热议问题