blob: fedbf669bbf0f21ea81206d81bbff82cabaee473 [file] [log] [blame]
Trevor Johnsf3714f52015-05-27 01:43:25 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<sample>
19 <name>Automatic Backup</name>
20 <group>Content</group>
21 <package>com.example.android.autobackup</package>
22
23 <minSdk>"MNC"</minSdk>
24 <targetSdk>"MNC"</targetSdk>
25 <compileSdkVersion>"android-MNC"</compileSdkVersion>
26
27 <strings>
28 <intro>
29 <![CDATA[
30This sample demonstrates how to selectively disable Automatic Backups in Android M, either by
31adjusting the location where data files are stored using getNoBackupFilesDir(), or by using a custom
32XML configuration file.
33
34This sample can also be used as a utility to test the behavior of the Automatic Backup feature.
35Executing "adb shell bmgr restore com.example.android.autobackup" from a terminal will cause the
36sample\'s data to be cleared and replaced with a copy from the backup server.
37 ]]>
38 </intro>
39 </strings>
40
41 <template src="base" />
42
43 <metadata>
44 <status>PUBLISEHD</status>
45 <categories>Content</categories>
46 <technologies>Android</technologies>
47 <languages>Java</languages>
48 <solutions>Mobile</solutions>
49 <level>INTERMEDIATE</level>
50 <icon>screenshots/icon-web.png</icon>
51 <screenshots>
52 <img>screenshots/1-main.png</img>
53 <img>screenshots/2-settings.png</img>
54 </screenshots>
55 <api_refs>
56 <android>android.app.Backup</android>
57 </api_refs>
58
59 <description>
60 Sample demonstrating how to selectively disable Automatic
61 Backups in Android M, either by adjusting the location where data
62 files are stored or by using a custom XML configuration file.
63 </description>
64
65 <intro>
66 <![CDATA[
67This sample demonstrates how to selectively disable Automatic Backups in Android M, either by
68adjusting the location where data files are stored using [getNoBackupFilesDir()][1], or by using a
69custom XML configuration file.
70
71This sample can also be used as a utility to test the behavior of the Automatic Backup feature.
72Executing:
73
74 adb shell bmgr restorecom.example.android.autobackup
75
76from a terminal will cause the sample's data to be cleared and replaced with a copy from the backup
77server.
78
79[1]: http://developers.google.com/reference/android/content/Context.html#getNoBackupFilesDir()
80 ]]>
81 </intro>
82 </metadata>
83</sample>