For such data, please use one of the mechanisms above. You may not want to have certain app data eligible for backup. Please refer to a detailed explanation of the rules syntax available in the documentation. In the configuration file, specify or rules that you need to fine tune the behavior of the default backup agent. You can customize what app data is available for backup by creating a backup configuration file in the res/xml folder and referencing it in your app’s manifest: As for files on external storage, only those in Context.getExternalFilesDir() are backed up. Any data residing in the locations denoted by Context.getCacheDir(), Context.getCodeCacheDir() and Context.getNoBackupFilesDir() is excluded from backup. That includes databases, shared preferences and other content in the application’s private directory, up to a limit of 25 megabytes per app. What is Auto-Backup for Apps?īy default, for users that have opted in to backup, all of the data files of an app are automatically copied out to a user’s Drive. Please note that data transferred may still incur charges from the user's cellular / internet provider. Even better, the backup data stored in Google Drive does not count against the user's quota. You can test it now on the M Developer Preview, where we’ve enabled Auto Backup for all apps regardless of targetSdkVersion.Īuto Backup for Apps is provided by Google to both users and developers at no charge. All you need to do to enable it for your app is update the targetSdkVersion to 23. This feature will be available on Android devices running the upcoming M release. Posted by Wojtek Kaliciński, Developer Advocate, AndroidĪuto Backup for Apps makes seamless app data backup and restore possible with zero lines of application code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |