File: package.html

package info (click to toggle)
android-platform-frameworks-base 1%3A10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 321,788 kB
  • sloc: java: 962,234; cpp: 274,314; xml: 242,770; python: 5,060; sh: 1,432; ansic: 494; makefile: 47; sed: 19
file content (30 lines) | stat: -rw-r--r-- 1,371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<HTML>
<BODY>
<p>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.</p>

<p>For more information, see the <a
href="{@docRoot}guide/topics/data/backup.html">Data Backup</a> guide.</p>
{@more}

<p>All backup and restore operations are controlled by the {@link
android.app.backup.BackupManager}. Each application that would
like to enable backup and preserve its data on remote storage must implement a
backup agent. A backup agent can be built by extending either {@link android.app.backup.BackupAgent}
or {@link android.app.backup.BackupAgentHelper}. The {@link
android.app.backup.BackupAgentHelper} class provides a wrapper around {@link
android.app.backup.BackupAgent} that simplifies the procedures to implement a backup agent by
employing backup helpers such as {@link android.app.backup.SharedPreferencesBackupHelper} and
{@link android.app.backup.FileBackupHelper}.</p>

<p>The backup APIs let applications:</p>
<ul>
  <li>Perform backup of arbitrary data to remote storage</li>
  <li>Easily perform backup of {@link android.content.SharedPreferences} and files</li>
  <li>Restore the data saved to remote storage</li>
</ul>

</BODY>
</HTML>