Contains the backup and restore functionality available to applications. If a user wipes the data on their device or upgrades to a new Android-powered device, all applications that have enabled backup can restore the user's previous data when the application is reinstalled.
For more information, see the Data Backup guide.
All backup and restore operations are controlled by the
BackupManager. Each application that would like to enable backup and preserve its data on remote strage must implement a backup agent. A backup agent can be built by extending either
BackupAgentHelper class provides a wrapper around
BackupAgent that simplifies the procedures to implement a backup agent by employing backup helpers such as
The backup APIs let applications:
|BackupHelper||Defines the calling interface that
|BackupAgent||Provides the central interface between an application and Android's data backup infrastructure.|
|BackupDataInput||Provides the structured interface through which a
|BackupDataOutput||Provides the structured interface through which a
|BackupManager||The interface through which an application interacts with the Android backup service to request backup and restore operations.|
|FileBackupHelper||A helper class that can be used in conjunction with
|FullBackupDataOutput||Provides the interface through which a
|RestoreObserver||Callback class for receiving progress reports during a restore operation.|
|SharedPreferencesBackupHelper||A helper class that can be used in conjunction with