public class AccountManager extends Object
public static final int ERROR_CODE_REMOTE_EXCEPTION
public static final int ERROR_CODE_NETWORK_ERROR
public static final int ERROR_CODE_CANCELED
public static final int ERROR_CODE_INVALID_RESPONSE
public static final int ERROR_CODE_UNSUPPORTED_OPERATION
public static final int ERROR_CODE_BAD_ARGUMENTS
public static final int ERROR_CODE_BAD_REQUEST
public static final String KEY_ACCOUNT_NAME
public static final String KEY_ACCOUNT_TYPE
public static final String KEY_AUTHTOKEN
public static final String KEY_INTENT
public static final String KEY_PASSWORD
public static final String KEY_ACCOUNTS
public static final String KEY_ACCOUNT_AUTHENTICATOR_RESPONSE
public static final String KEY_ACCOUNT_MANAGER_RESPONSE
public static final String KEY_AUTHENTICATOR_TYPES
public static final String KEY_AUTH_FAILED_MESSAGE
public static final String KEY_AUTH_TOKEN_LABEL
public static final String KEY_BOOLEAN_RESULT
public static final String KEY_ERROR_CODE
public static final String KEY_ERROR_MESSAGE
public static final String KEY_USERDATA
public static final String KEY_CALLER_UID
public static final String KEY_CALLER_PID
public static final String KEY_ANDROID_PACKAGE_NAME
public static final String ACTION_AUTHENTICATOR_INTENT
public static final String AUTHENTICATOR_META_DATA_NAME
public static final String AUTHENTICATOR_ATTRIBUTES_NAME
public static final String LOGIN_ACCOUNTS_CHANGED_ACTION
public static AccountManager get(Context context)
public AuthenticatorDescription[] getAuthenticatorTypes()
public Account[] getAccounts()
public AccountManagerFuture<Boolean> hasFeatures(Account account, String[] features, AccountManagerCallback<Boolean> callback, Handler handler)
public AccountManagerFuture<Account[]> getAccountsByTypeAndFeatures(String type, String[] features, AccountManagerCallback<Account[]> callback, Handler handler)
public boolean addAccountExplicitly(Account account, String password, Bundle userdata)
public AccountManagerFuture<Boolean> removeAccount(Account account, AccountManagerCallback<Boolean> callback, Handler handler)
public void clearPassword(Account account)
public String blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure) throws OperationCanceledException, IOException, AuthenticatorException
public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
@Deprecated public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler)
public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle options, boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler)
public AccountManagerFuture<Bundle> addAccount(String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
public AccountManagerFuture<Bundle> confirmCredentials(Account account, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
public AccountManagerFuture<Bundle> updateCredentials(Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
public AccountManagerFuture<Bundle> editProperties(String accountType, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler)
public AccountManagerFuture<Bundle> getAuthTokenByFeatures(String accountType, String authTokenType, String[] features, Activity activity, Bundle addAccountOptions, Bundle getAuthTokenOptions, AccountManagerCallback<Bundle> callback, Handler handler)
public static Intent newChooseAccountIntent(Account selectedAccount, ArrayList<Account> allowableAccounts, String[] allowableAccountTypes, boolean alwaysPromptForAccount, String descriptionOverrideText, String addAccountAuthTokenType, String[] addAccountRequiredFeatures, Bundle addAccountOptions)
public void addOnAccountsUpdatedListener(OnAccountsUpdateListener listener, Handler handler, boolean updateImmediately)
public void removeOnAccountsUpdatedListener(OnAccountsUpdateListener listener)
Copyright © 2008-2013. All Rights Reserved.