Home | History | Annotate | Download | only in AutoBackupForApps
      1 
      2 Android Automatic Backup Sample
      3 ===================================
      4 
      5 Sample demonstrating how to selectively disable Automatic
      6           Backups in Android M, either by adjusting the location where data
      7           files are stored or by using a custom XML configuration file.
      8 
      9 Introduction
     10 ------------
     11 
     12 This sample demonstrates how to selectively disable Automatic Backups in Android M, either by
     13 adjusting the location where data files are stored using [getNoBackupFilesDir()][1], or by using a
     14 custom XML configuration file.
     15 
     16 This sample can also be used as a utility to test the behavior of the Automatic Backup feature.
     17 Executing:
     18 
     19     adb shell bmgr restorecom.example.android.autobackup
     20 
     21 from a terminal will cause the sample's data to be cleared and replaced with a copy from the backup
     22 server.
     23 
     24 [1]: http://developers.google.com/reference/android/content/Context.html#getNoBackupFilesDir()
     25 
     26 Pre-requisites
     27 --------------
     28 
     29 - Android SDK 24
     30 - Android Build Tools v24.0.1
     31 - Android Support Repository
     32 
     33 Screenshots
     34 -------------
     35 
     36 <img src="screenshots/1-main.png" height="400" alt="Screenshot"/> <img src="screenshots/2-settings.png" height="400" alt="Screenshot"/> 
     37 
     38 Getting Started
     39 ---------------
     40 
     41 This sample uses the Gradle build system. To build this project, use the
     42 "gradlew build" command or use "Import Project" in Android Studio.
     43 
     44 Support
     45 -------
     46 
     47 - Google+ Community: https://plus.google.com/communities/105153134372062985968
     48 - Stack Overflow: http://stackoverflow.com/questions/tagged/android
     49 
     50 If you've found an error in this sample, please file an issue:
     51 https://github.com/googlesamples/android-Automatic Backup
     52 
     53 Patches are encouraged, and may be submitted by forking this project and
     54 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
     55 
     56 License
     57 -------
     58 
     59 Copyright 2016 The Android Open Source Project, Inc.
     60 
     61 Licensed to the Apache Software Foundation (ASF) under one or more contributor
     62 license agreements.  See the NOTICE file distributed with this work for
     63 additional information regarding copyright ownership.  The ASF licenses this
     64 file to you under the Apache License, Version 2.0 (the "License"); you may not
     65 use this file except in compliance with the License.  You may obtain a copy of
     66 the License at
     67 
     68 http://www.apache.org/licenses/LICENSE-2.0
     69 
     70 Unless required by applicable law or agreed to in writing, software
     71 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     72 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
     73 License for the specific language governing permissions and limitations under
     74 the License.
     75