AutoBackupForApps
2015-12-02 11:39
274 查看
This sample demonstrates how to selectively disable Automatic Backups in Android M, either by adjusting the location where data files are stored using getNoBackupFilesDir(), or by using a custom XML configuration file. This sample can also be used as a utility to test the behavior of the Automatic Backup feature. Executing "adb shell bmgr restore com.example.android.autobackup" from a terminal will cause the sample\'s data to be cleared and replaced with a copy from the backup server.
此示例演示了如何在Android M上有选择性地禁用自动备份,可以通过使用getNoBackupFilesDir()方法设置数据的存储位置,也可以通过使用自定义XML配置文件位置。该示例还可以用来作为一个实用程序来测试自动备份功能的行为。从终端执行“adb shell bmgr restore com.example.android.autobackup”会导致示例的数据被清除,并被备份服务器上的副本替换。
代码下载:
http://pan.baidu.com/s/1hq2PuPu
此示例演示了如何在Android M上有选择性地禁用自动备份,可以通过使用getNoBackupFilesDir()方法设置数据的存储位置,也可以通过使用自定义XML配置文件位置。该示例还可以用来作为一个实用程序来测试自动备份功能的行为。从终端执行“adb shell bmgr restore com.example.android.autobackup”会导致示例的数据被清除,并被备份服务器上的副本替换。
代码下载:
http://pan.baidu.com/s/1hq2PuPu
相关文章推荐
- Android 日历CalendarProvider
- android项目设备管理器
- Android 监听数据变化比较合理的写法总结
- Android Material Design:滑动指示选项卡android.support.design.widget.TabLayout的简单使用
- Android常用的工具类下载地址及分析
- Android自定义轮播图控件
- 使用android.support.design.widget.TabLayout出现java.lang.reflect.InvocationTargetException
- Android Log高级用法
- MAC OS Android 真机调试参考链接
- iOS 手势操作:拖动、捏合、旋转、点按、长按、轻扫、自定义
- IOS接口解析(GET请求)
- git 错误 fatal: Not a valid object name: 'master'.
- Adding a CoAP app
- ios 中的UIApplication类以及直接打开iPhone的设置页面
- IntelliJ Idea / Android Studio 常用快捷键列表
- Android Studio 使用之二创建与导入工程
- neuron诺亦腾全身穿戴设备开发untiy项目
- Android WebView 开发详解(一)
- Android Studio 使用之一安装设置
- NSRegularExpression iOS自带的正则表达式