AccountManager

Class of android.accounts · AccountManager.java · Android's reference

public class AccountManager

The accounts of the device. There are none: each query answers an empty list, and tokens are not kept.

Fields

public static final String KEY_ACCOUNT_NAME = "authAccount" source
public static final String KEY_ACCOUNT_TYPE = "accountType" source
public static final String KEY_AUTHTOKEN = "authtoken" source
public static final String KEY_INTENT = "intent" source
public static final String KEY_ERROR_CODE = "errorCode" source
public static final String KEY_ERROR_MESSAGE = "errorMessage" source

Methods

public static AccountManager get(Context context) source
public Account[] getAccounts() source
public Account[] getAccountsByType(String type) source
public AccountManagerFuture<Account[]> getAccountsByTypeAndFeatures(String type, String[] features, AccountManagerCallback<Account[]> callback, Handler handler) source
public void invalidateAuthToken(String accountType, String authToken) empty body source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.