Custom Authentication: How To Get Custom User Data Values?
I have custom authenticator. And put account information like it shown below: final AccountManager am = AccountManager.get(AuthActivity.this); final Bundle result = new Bundle(); f
Solution 1:
Check out Android AccountManager.getUserData() returns null. There is a known issue with addAccountExplicitly
. Instead of passing the values in the Bundle, pass an empty Bundle and set the values after creating the account using setUserData(Account, String, String).
IIRC, the problem is a caching issue in the account manager service code. If you remove an account and recreate the same account right away the user data cache in not populated with the values passed in the bundle. Using setUserData
works around this issue.
Post a Comment for "Custom Authentication: How To Get Custom User Data Values?"