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

AutoBackupForApps的更多相关文章

随机推荐

  1. mac 自带 php 验证码 不显示

    curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 在命令行中输入上面   ,最后5.5是php版本号 自动安装FreeType ----- ...

  2. python unicode&str 转化

    从数据库中取出的值是Unicode编码的 需要转化为str才能正常使用 参考: http://www.mamicode.com/info-detail-308445.html

  3. django-orm-standalone

    django-orm-standalone script via:https://github.com/masnun/django-orm-standalone/ # Django specific ...

  4. [r]Ubuntu Linux系统下apt-get命令详解

    Ubuntu Linux系统下apt-get命令详解(via|via) 常用的APT命令参数: apt-cache search package 搜索包 apt-cache show package ...

  5. php实现base64编码

    工作需要,想弄一个加密的串,就想仿照base64的编码方式,写一个加密的方法,所以就有了下面这个用php实现的base64的代码 <?php /** * Base64 编码/解码 * @auth ...

  6. 英语学习App演示

  7. .net序列化和反系列化json与类型对象转换

    先添加程序集:  System.Web.Extensions(在 System.Web.Extensions.dll 中) 引用:using System.Web.Script.Serializati ...

  8. codevs 1078 最小生成树

    题目描述 Description 农民约翰被选为他们镇的镇长!他其中一个竞选承诺就是在镇上建立起互联网,并连接到所有的农场.当然,他需要你的帮助. 约翰已经给他的农场安排了一条高速的网络线路,他想把这 ...

  9. Struts2+JFreeChart

    前言 关于Struts2入门以及提高等在这里就不介绍了,但是关于Struts2的学习有以下推荐: struts2-showcase-2.0.6.war:这个是官方自带的Demo(struts-2.0. ...

  10. sudo and su

    sudo bash : change the current user into root su u1: change the current user into u1 useradd: add ne ...