- account
- The account to fetch an auth token for
- authTokenType
- The auth token type, see AccountManager.getAuthToken(android.accounts.Account, java.lang.String, android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler)
- notifyAuthFailure
- If true, display a notification and return null if authentication fails; if false, prompt and wait for the user to re-enter correct credentials before returning
Documentation for this section has not yet been entered.
Type Reason Android.Accounts.AuthenticatorException if the authenticator failed to respond Android.Accounts.OperationCanceledException if the request was canceled for any reason, including the user canceling a credential request Java.IO.IOException if the authenticator experienced an I/O problem creating a new auth token, usually because of network trouble
This convenience helper synchronously gets an auth token with AccountManager.getAuthToken(android.accounts.Account, java.lang.String, boolean, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler).
This method may block while a network request completes, and must never be made from the main thread.
This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#USE_CREDENTIALS.