Questions tagged [android-backup-service]

Android Backup Service is integrated with Android's data backup framework to perform data backup and restore for most devices running Android 2.2 or greater, using Google servers and a backup transport on the device.

Android Backup Service is integrated with Android's data backup framework to perform data backup and restore for most devices running Android 2.2 or greater, using Google servers and a backup transport on the device. In some cases, a specific Android-powered device might include a different backup transport for backup services, or might not provide a backup transport at all. Whether or not a device performs backup using Android Backup Service or another service is transparent to applications—the backup APIs used by applications are independent of the backup transport enabled on the device.

225 questions
0
votes
0 answers

Check if Google Backup is Turned On Otherwise Redirect User to Enable It

I want to backup user data of my Android application. I want to store in Google cloud if user has turned on backup in Settings -> Google -> Backup, otherwise as a fallback push to our backend. Questions: 1. Is it possible to find programatically if…
0
votes
0 answers

Considerations of building an Android service as system app (OEM)

I'm working on an OEM project where we need a background service (no UI) to be working continuously. Of course it'll be an app signed with the OEM key, so it shouldn't be any trouble related to background services Android's restrictions. But, as it…
Vento
  • 135
  • 11
0
votes
0 answers

How to upload database to google gmail

I want to save app database to gmail with the following tutorial : Backup of Room Database files in Android | REST API v3 When I want to upload the database with the following code: private void upload(){ File storageFile = new File(); …
0
votes
2 answers

unable to call onBackup() method of BackupAgentHelper

I am having class which takes backup of data and restore the same. I have referred the example given in api demos. But it does not work at all. Can anybody help me over this issue? Android Manifest.xml
Richa
  • 3,165
  • 1
  • 22
  • 26
0
votes
1 answer

How to detect when app was restored using Backup Service?

In my app user can choose custom files to be used instead of some default settings. File's info is stored by its URI and I have hard time handling case of Backup Service restoring whole app, when all the restored URIs will be invalid. App will turn…
Koger
  • 1,783
  • 2
  • 23
  • 34
0
votes
1 answer

How do I get room database to persist through app reinstall?

I am trying to get my room database to persist through reinstall and on using a new phone. I am currently using key-value backups, with this simple code: class AppBackupAgentHelper: BackupAgentHelper() { override fun onCreate() { …
0
votes
0 answers

Android auto backup rules not well formed error

I have implemented a specific auto backup rules for my app following the developers documentations : android developers Here , they specify that you can configure this and attach it to your manifest
Nexussim Lements
  • 535
  • 1
  • 15
  • 47
0
votes
0 answers

Android's WorkManager not running when scheduled from a service

My works scheduled in the WorkManager are not always being executing when the app in the background. This is how I schedule them: Constraints myConstraints = new Constraints.Builder() .setRequiredNetworkType(NetworkType.CONNECTED) …
0
votes
0 answers

what is the best way to backup my android apps data

I would like my app to backup the user data that they create on my app to google drive account of user. I have looked at few ways to do it, but I would like to know what is the best way? I did use android:fullBackupContent="true" but I don't see any…
Think_Twice
  • 229
  • 4
  • 18
0
votes
0 answers

Android - how to extract/backup your phone contact list and browser bookmarks (stock browser, not chrome)

Android - how to extract/backup your phone contact list and browser favorites (stock browser, not chrome) - a modern Samsung smartphone. Hi, I am grateful for any replies (pls note that we always talk about a non-rooted device, and I have no desire…
0
votes
1 answer

Android not automatically backing up sharedprefs?

I'm having an issue with the android https://developer.android.com/guide/topics/data/autobackup feature not working. Unity version; 2018.4.3f1 Android; min version: 16, target: 28 I've tried it with the 'android:fullBackupOnly' flag, but it made no…
0
votes
1 answer

What is the proper way to implement SharedPreferencesBackupHelper?

initial use of sharedpreferences. BackupManager bm = new BackupManager(getApplicationContext()); SharedPreferences sharedPreferences = getSharedPreferences("AppData", MODE_PRIVATE); if(sharedPreferences.getBoolean("my_first_time", true)) { …
0
votes
1 answer

Why Service in not running in Background after remove for recent apps

Why my Service is not running in background when if remove my app from background or remove from recent apps. I very much confuse between IntentService and Service which one I should prefer. I am making app where I will read all call log detail and…
0
votes
1 answer

Can I restrict my app sharedprefs data to google drive/cloud in android?

I want to restrict my app's privacy data when user backup/restore in other device. Can I set android:allowBackup="false" in manifest file to achieve this? I am saving unique Id in sharedprefs with uuid.randomstring(). So if user takes backup and…
Sun_Josh
  • 93
  • 2
  • 5