Home | History | Annotate | Download | only in AutoBackupForApps
      1 <?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>23</minSdk>
     24 
     25     <strings>
     26         <intro>
     27             <![CDATA[
     28 This sample demonstrates how to selectively disable Automatic Backups in Android M, either by
     29 adjusting the location where data files are stored using getNoBackupFilesDir(), or by using a custom
     30 XML configuration file.
     31 
     32 This sample can also be used as a utility to test the behavior of the Automatic Backup feature.
     33 Executing "adb shell bmgr restore com.example.android.autobackup" from a terminal will cause the
     34 sample\'s data to be cleared and replaced with a copy from the backup server.
     35             ]]>
     36         </intro>
     37     </strings>
     38 
     39     <template src="base" />
     40 
     41     <metadata>
     42         <status>PUBLISEHD</status>
     43         <categories>Content</categories>
     44         <technologies>Android</technologies>
     45         <languages>Java</languages>
     46         <solutions>Mobile</solutions>
     47         <level>INTERMEDIATE</level>
     48         <icon>screenshots/icon-web.png</icon>
     49         <screenshots>
     50             <img>screenshots/1-main.png</img>
     51             <img>screenshots/2-settings.png</img>
     52         </screenshots>
     53         <api_refs>
     54           <android>android.app.Backup</android>
     55         </api_refs>
     56 
     57         <description>
     58           Sample demonstrating how to selectively disable Automatic
     59           Backups in Android M, either by adjusting the location where data
     60           files are stored or by using a custom XML configuration file.
     61         </description>
     62 
     63         <intro>
     64           <![CDATA[
     65 This sample demonstrates how to selectively disable Automatic Backups in Android M, either by
     66 adjusting the location where data files are stored using [getNoBackupFilesDir()][1], or by using a
     67 custom XML configuration file.
     68 
     69 This sample can also be used as a utility to test the behavior of the Automatic Backup feature.
     70 Executing:
     71 
     72     adb shell bmgr restorecom.example.android.autobackup
     73 
     74 from a terminal will cause the sample's data to be cleared and replaced with a copy from the backup
     75 server.
     76 
     77 [1]: http://developers.google.com/reference/android/content/Context.html#getNoBackupFilesDir()
     78           ]]>
     79         </intro>
     80     </metadata>
     81 </sample>
     82