Skip to content Skip to sidebar Skip to footer

Getaccountsbytype Does Not Return Anything In Marshmallow

Now this is odd... Using AccountManager.newChooseAccountIntent(null, null, new String[] {'com.google'}, null, null, null, null); does give me a list of accounts. But using Accoun

Solution 1:

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

Solution 2:

For anyone getting here, the real answer is here

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

Post a Comment for "Getaccountsbytype Does Not Return Anything In Marshmallow"