FileDocCategorySizeDatePackage
AccountsServiceConstants.javaAPI DocAndroid 1.5 API3006Wed May 06 22:41:54 BST 2009android.accounts

AccountsServiceConstants

public class AccountsServiceConstants extends Object
Miscellaneous constants used by the AccountsService and its clients.

Fields Summary
public static final String
LOGIN_ACCOUNTS_CHANGED_ACTION
Action sent as a broadcast Intent by the AccountsService when accounts are added to and/or removed from the device's database, or when the primary account is changed.
public static final String
LOGIN_ACCOUNTS_MISSING_ACTION
Action sent as a broadcast Intent by the AccountsService when it starts up and no accounts are available (so some should be added).
private static final String
ACCOUNTS_SERVICE_ACTION
Action on the intent used to bind to the IAccountsService interface. This is used for services that have multiple interfaces (allowing them to differentiate the interface intended, and return the proper Binder.)
public static final android.content.Intent
SERVICE_INTENT
The intent used to bind to the accounts service.
Constructors Summary
private AccountsServiceConstants()
This class is never instantiated.

    
Methods Summary
public static final booleanisForAccountsService(android.content.Intent bindIntent)
Checks whether the intent is to bind to the accounts service.

param
bindIntent The Intent used to bind to the service.
return
Whether the intent is to bind to the accounts service.


                                           
          
        String otherAction = bindIntent.getAction();
        return otherAction != null && otherAction.equals(ACCOUNTS_SERVICE_ACTION);