

Of key/value pairs by uploading it to the Android Backup Service. The Key/Value Backup feature (formerly known as theīackup API and the Android Backup Service) preserves settings data in the form Auto Backup can store up to 25 MB ofįile-based data per app. Auto Backup includesįiles in most of the directories that areĪssigned to your app by the system. Auto Backup, which is available onĪndroid version 6.0 and higher, preserves data by uploading it to the user's Backup optionsĪndroid provides two ways for apps to back up their data to the cloud:īackup. Instead of backing up the URI you can instead back up some metadataĪbout the setting, such as a ringtone title or a hash of the ringtone.

When the user reinstalls theĪpp, the URI might point to no ringtone, or a different ringtone from the one Using URIs to save a user's ringtone preference. In an invalid URI that does not point to a valid file. In some cases a restoration to a new mobile device may result One type of settings data you should avoid backing up is URIs because theyĬan be unstable. Restoring settings on new devices ensures a great user Whether the user has turned notification and ringtones on or off.īoolean flags which indicate if the user has seen welcome screens orįigure 2. Possible, make sure you back up the following user settings:Īny settings modified by the user, for example when using the Jetpack To preserve as much of an existing user's experience on a new device as However, if a user uninstalls your app, then the systemĬlears any granted permission and the user must grant them again. Restored by the system on devices running Android version 7.0 (API levelĢ4) and higher. Note: Any permissions a user grants to your app are automatically backed up and

Transparent data, such as a flag indicating whether a user has seen a You canīack up settings that a user explicitly sets in your app's UI, as well as Restore settings data even if a user doesn't log in to your app. Make sure you also back up and restore settings data to preserveĪ returning user's personalized preferences on a new device. You can also use eitherĪpproach to restore a returning user's data onto a new device. You'd like to use during the normal app lifecycle. To synchronize app data between Android-powered devices and save data which For restoring app data, see Transfer data using sync App dataĪpp data may include user-generated content, such as text, images, and To explore Google sign-in solutions to facilitate user login to your app, refer to Google Identity. User's account when they get started with a new device.įor details on transferring account (login) credentials, refer to Block Store. You can help maintain existing user engagement by transferring the User-generated app data, and settings data, as described below. The important data to back up for your users is their identity data, Only backing up some of the data canįrustrate users when they open the app on a new device and discover something Users generate a lot of data when using your apps and you should take care toīack up the appropriate data. Make sure you restore identity, app data, and settings
