AccountManagerFuture | addAccount(final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle addAccountOptions, final Activity activity, AccountManagerCallback callback, Handler handler) Asks the user to add an account of a specified type. |
boolean | addAccountExplicitly(Account account, String password, Bundle userdata) Adds an account directly to the AccountManager. |
void | addOnAccountsUpdatedListener(final OnAccountsUpdateListener listener, Handler handler, boolean updateImmediately) Adds an OnAccountsUpdateListener to this instance of the AccountManager . |
String | blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure) This convenience helper synchronously gets an auth token with #getAuthToken(Account,String,boolean,AccountManagerCallback,Handler) . |
void | clearPassword(final Account account) Forgets a saved password. |
AccountManagerFuture | confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback callback, final Handler handler) Confirms that the user knows the password for an account to make extra sure they are the owner of the account. |
AccountManager | get(Context context) Gets an AccountManager instance associated with a Context. |
Account[] | getAccounts() Lists all accounts visible to the caller regardless of type. |
Account[] | getAccountsByType(String type) Lists all accounts of particular type visible to the caller. |
AccountManagerFuture | getAccountsByTypeAndFeatures(final String type, final String[] features, AccountManagerCallback callback, Handler handler) Lists all accounts of a type which have certain features. |
AuthenticatorDescription[] | getAuthenticatorTypes() Lists the currently registered authenticators. |
AccountManagerFuture | getAuthToken(final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback callback, Handler handler) Gets an auth token of the specified type for a particular account, optionally raising a notification if the user must enter credentials. |
AccountManagerFuture | getAuthToken(final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback callback, Handler handler) Gets an auth token of the specified type for a particular account, prompting the user for credentials if necessary. |
AccountManagerFuture | getAuthToken(final Account account, final String authTokenType, final Bundle options, final boolean notifyAuthFailure, AccountManagerCallback callback, Handler handler) Gets an auth token of the specified type for a particular account, optionally raising a notification if the user must enter credentials. |
AccountManagerFuture | getAuthTokenByFeatures(final String accountType, final String authTokenType, final String[] features, final Activity activity, final Bundle addAccountOptions, final Bundle getAuthTokenOptions, final AccountManagerCallback callback, final Handler handler) This convenience helper combines the functionality of #getAccountsByTypeAndFeatures , #getAuthToken , and #addAccount . |
String | getPassword(final Account account) Gets the saved password associated with the account. |
String | getUserData(final Account account, final String key) Gets the user data named by "key" associated with the account. |
void | invalidateAuthToken(final String accountType, final String authToken) Removes an auth token from the AccountManager's cache. |
Intent | newChooseAccountIntent(Account selectedAccount, ArrayList allowableAccounts, String[] allowableAccountTypes, boolean alwaysPromptForAccount, String descriptionOverrideText, String addAccountAuthTokenType, String[] addAccountRequiredFeatures, Bundle addAccountOptions) Deprecated in favor of #newChooseAccountIntent(Account,List,String[],String,String,String[],Bundle) . |
Intent | newChooseAccountIntent(Account selectedAccount, List allowableAccounts, String[] allowableAccountTypes, String descriptionOverrideText, String addAccountAuthTokenType, String[] addAccountRequiredFeatures, Bundle addAccountOptions) Returns an intent to an Activity that prompts the user to choose from a list of accounts. |
boolean | notifyAccountAuthenticated(Account account) Notifies the system that the account has just been authenticated. |
String | peekAuthToken(final Account account, final String authTokenType) Gets an auth token from the AccountManager's cache. |
AccountManagerFuture | removeAccount(final Account account, AccountManagerCallback callback, Handler handler) Removes an account from the AccountManager. |
AccountManagerFuture | removeAccount(final Account account, final Activity activity, AccountManagerCallback callback, Handler handler) Removes an account from the AccountManager. |
void | removeOnAccountsUpdatedListener(OnAccountsUpdateListener listener) Removes an OnAccountsUpdateListener previously registered with #addOnAccountsUpdatedListener . |
void | setAuthToken(Account account, final String authTokenType, final String authToken) Adds an auth token to the AccountManager cache for an account. |
void | setPassword(final Account account, final String password) Sets or forgets a saved password. |
void | setUserData(final Account account, final String key, final String value) Sets one userdata key for an account. |
AccountManagerFuture | updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback callback, final Handler handler) Asks the user to enter a new password for an account, updating the saved credentials for the account. |