Can I get a user's email address on the Kindle Fire?
Sorry, but you are completely wrong.
I is used to link to the Google Login Dialog, which shows all the users that existed on the Kindle Fire.
Please follow this code:
public class AuthAcount { private Context context; private AccountManager mAccountManager; public AuthAcount(Context context) { setContext(context); } public Account[] getAccount() { mAccountManager = AccountManager.get(context); Account[] accounts = mAccountManager .getAccountsByType(GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE); return accounts; } public Context getContext() { return context; } public void setContext(Context context) { this.context = context; } }
P / s: to use the GoogleAuthUtil class, you may need google-oauth-client-1.15.0-rc.jar (use the latest version).
Huy tower
source share