question

ekawas avatar image
ekawas asked

Do Kindle devices support the AccountManager classes?

My app uses the AccountManager class to detect Gmail accounts on a users device so it can use OAuth2 authentication with their accounts. I am seeing more and more users say it doesn't work on Kindle. Is that because those devices don't support the AccountManager class? http://developer.android.com/reference/android/accounts/AccountManager.html
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Venkat@Amazon avatar image
Venkat@Amazon answered
Hi ekawas, Thank you for your post. We have forwarded your query to the appropriate team and will get back to you once we have an update.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Venkat@Amazon avatar image
Venkat@Amazon answered
Hi, AccountManager class is supported on all new Kindle Fire devices (Kindle Fire 2nd Gen, Kindle Fire HD7 and Kindle Fire HD8.9). Using AccountManager class to return Gmail accounts can differ between Kindle Fire devices and non-Amazon devices. For example: On non-Amazon devices Account[] accountsOnDevice = AccountManager.get(this).getAccountsByType("com.google"); On Kindle Fire devices Account[] accountsOnDevice = AccountManager.get(this).getAccountsByType("com.amazon.pim.account.google"); For Kindle Fire devices getAccountsByType() argument will be "com.amazon.pim.account.google"
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

djunod2 avatar image
djunod2 answered
Actually, for Fire devices: As the user can setup all sorts of different email accounts, such as Yahoo, Google, etc, for Kindle Fire devices getAccountsByType() argument will be "com.amazon.pim" The user name will be in type "com.amazon.account"
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.