Main entry point for AccountTransfer API's.
Constant Summary
String | ACTION_ACCOUNT_EXPORT_DATA_AVAILABLE | Broadcast sent to the packages which own the accounts on device to notify availability of export transfer data. |
String | ACTION_ACCOUNT_IMPORT_DATA_AVAILABLE | Broadcast sent to the packages which own the accounts on device to notify availability of import transfer data. |
String | ACTION_START_ACCOUNT_EXPORT | Broadcast sent to the packages which own the accounts on device to notify starting of account export. |
String | KEY_EXTRA_ACCOUNT_TYPE | Extra key sent with broadcast putting in account type. |
Public Method Summary
static AccountTransferClient |
getAccountTransferClient(Context
context)
Creates a new instance of
AccountTransferClient for use in a non-activity Context .
|
static AccountTransferClient |
getAccountTransferClient(Activity
activity)
Creates a new instance of
AccountTransferClient for use in an Activity .
|
Inherited Method Summary
Constants
public static final String ACTION_ACCOUNT_EXPORT_DATA_AVAILABLE
Broadcast sent to the packages which own the accounts on device to notify availability of export transfer data.
public static final String ACTION_ACCOUNT_IMPORT_DATA_AVAILABLE
Broadcast sent to the packages which own the accounts on device to notify availability of import transfer data.
public static final String ACTION_START_ACCOUNT_EXPORT
Broadcast sent to the packages which own the accounts on device to notify starting of account export. This broadcast is only sent once on the source (exporting) device.
public static final String KEY_EXTRA_ACCOUNT_TYPE
Extra key sent with broadcast putting in account type. It is useful for inspection if the same package is responsible for multiple account types.
Public Methods
public static AccountTransferClient getAccountTransferClient (Context context)
Creates a new instance of
AccountTransferClient
for use in a non-activity Context
.
public static AccountTransferClient getAccountTransferClient (Activity activity)
Creates a new instance of
AccountTransferClient
for use in an Activity
.