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

Data folder not deleted when app is uninstalled

When I uninstall my app, I want the Android> data > (package name) folder to also be deleted. I added the following code to my manifest:
Zim
  • 274
  • 4
  • 17
0
votes
0 answers

App crashes with java.lang.UnsatisfiedLinkError for Oreo devices with Xamarin.Android

I'm receiving crash reports in Google Play Console for my app, and the stacktrace is as follows: java.lang.UnsatisfiedLinkError: at mono.android.Runtime.register (Native Method) at md5f3dc63ecaad575af71bd7a9b1622f75b.n. (n.java:20) at…
0
votes
1 answer

Backup and restore SQLite database to sdcard in Xamarin Android C#

I want to implement backup and restore database in android with xamarin android C#. My database is Sqlite and I want to backup db to SdCard. AnyOne Can Help Me? The code below is some My code string folder =…
omid-ahmadpour
  • 63
  • 1
  • 12
0
votes
2 answers

When I clear all recent apps, android system kills my app service on Android v7.1.2

enter image description hereI want to create an app which runs in the background. I have tried all stackoverflow solutions. Those solutions are all working when the app is cleared by myself. But when I'm performing "clear all recent apps". The…
0
votes
1 answer

Is there a way to backup android library data

I have an requirement where I need to back up shared preferences data of the android library so that if the user reinstalls the application I can still get back the details. I know we have Android…
0
votes
2 answers

Android, how to prevent internal storage files to be deleted when the app is uninstalled

I'm developing an app which stores few setting in two .xml files, saved on internal storage. I need to save them in there, so please don't answer me "Save them on SD-cards". I try to uninstall an then re-install (from Android Studio) my app to see…
0
votes
0 answers

Backup shared preferences file to cloud

I'm trying to backup my shared preferences file, made a BackupAgentHelper - public class MyPrefsBackupAgent extends BackupAgentHelper { // The name of the SharedPreferences file static final String PREFS = "favorites"; // A key to uniquely identify…
Tsur Yohananov
  • 533
  • 1
  • 7
  • 17
0
votes
1 answer

Auto Backup of my android app not working

I am targeting API 23 in my build.gradle. I have allowed backup in my manifest file. I could test auto update using adb shell commands. But auto back up is not happening on its own on my device.I have set "Back up my data" to ON in Settings ->…
shanti
  • 359
  • 5
  • 20
0
votes
1 answer

No backup transports available on android emulator with api level 24+

I want to test backuping of my application, but backup transport isn't available on the emulator. I tried two emulators - Android API version 24 and 25, both with Google API support. When I execute bmgr list transports, bmgr answers: No transports…
Valeriy Katkov
  • 33,616
  • 20
  • 100
  • 123
0
votes
1 answer

Restoring some XML fields from excluded SharedPreference file (using fullBackupContent)

I have an app with Google Cloud Messaging feature and also optional fullBackupContent declared like this:
0
votes
1 answer

Full backup feature is disabled by gservice

I am attempting to perform a full backup on Android using adb shell bmgr fullbackup but I am seeing: I/Backup: [GmsBackupTransport] Attempt to do full backup on com.alexrothberg.afitness I/Backup: [GmsBackupTransport] Full backup feature is disabled…
Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120
0
votes
0 answers

Android BackUp API: How to perform database backups/restore thread safe?

I want to perform SQLite database backups/restores. I thought the easiest way was to use the BackUp API. However, the documentation says: However, reading and writing to files on internal storage is not threadsafe. To ensure that your backup agent…
0
votes
1 answer

will setting up android BackupAgentHelper ensure that my app will get installed upon factory data restore

I've set up backup / restore in my application via BackupAgentHelper per instructions in https://developer.android.com/guide/topics/data/backup.html I was also hoping that when I do factory reset on phone B, my application will get installed there,…
Mike
  • 1,176
  • 3
  • 14
  • 26
0
votes
1 answer

how to upload a file to google drive when wifi is available

I'm creating an app which collects a data and saves in a particular folder. Now I was looking for source code which will automatically uploads to Google drive of a given account(and not the user's managed account) when only WiFi is available. I can…
0
votes
2 answers

Implementing Android M's AutoBackup Feature

I'm looking to implement the new autobackup feature introduced in Android M, as detailed in the docs here: http://developer.android.com/training/backup/autosyncapi.html#testing I'm after easily restoring player database and shared preferences…
Jez
  • 1,146
  • 8
  • 11