• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Backing up App Data to the Cloud
2page.tags=cloud,sync,backup
3
4trainingnavtop=true
5startpage=true
6
7@jd:body
8
9<div id="tb-wrapper">
10<div id="tb">
11
12<h2>Dependencies and prerequisites</h2>
13<ul>
14  <li>Android 2.2 (API level 8) and higher</li>
15</ul>
16</div>
17</div>
18
19<p>Users often invest significant time and effort creating data and setting
20preferences within apps. Preserving that data for users if they replace a broken
21device or upgrade to a new one is an important part of ensuring a great user
22experience.</p>
23
24<p>This class covers techniques for backing up data to the cloud so that
25users can restore their data when recovering from a data loss (such as a factory
26reset) or installing your application on a new device.</p>
27
28<p>It is important to note that the API for cloud backup changed with the
29release of Android 6.0 (API level 23). For your app to support backup both
30on devices running Android 6.0, and those running Android 5.1 (API level
3122) and lower, you must implement both techniques that this class explains.</p>
32
33<h2>Lessons</h2>
34
35<dl>
36	<dt><strong><a href="autosyncapi.html">Configuring Auto Backup for Apps</a></strong></dt>
37	<dd>This lesson applies to Android 6.0 (API level 23) and higher. Learn how to accomplish
38  seamless app data backup and restore with zero additional lines of application code.</dd>
39</dl>
40
41<dl>
42  <dt><strong><a href="backupapi.html">Using the Backup API</a></strong></dt>
43  <dd>This lesson applies to Android 5.1 (API level 22) and lower. Learn how to integrate the Backup
44  API into your Android app, so all of that  app's user data, such as preferences, notes, and high
45  scores, updates seamlessly across all devices linked to that Google account.</dd>
46</dl>
47
48