What is “android:allowBackup”?

前端 未结 4 1741
庸人自扰
庸人自扰 2020-11-29 15:24

Since the new ADT preview version (version 21), they have a new lint warning that tells me the next thing on the manifest file (in the application tag):

4条回答
  •  一向
    一向 (楼主)
    2020-11-29 15:57

    This is not explicitly mentioned, but based on the following docs, I think it is implied that an app needs to declare and implement a BackupAgent in order for data backup to work, even in the case when allowBackup is set to true (which is the default value).

    http://developer.android.com/reference/android/R.attr.html#allowBackup http://developer.android.com/reference/android/app/backup/BackupManager.html http://developer.android.com/guide/topics/data/backup.html

提交回复
热议问题