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

Is it possible to use Android Backup Service to store images?

When I use android/com.android.internal.backup.LocalTransport I have no problems to store images (byte[]) along with other text data. When I try to uninstall and install dev app on a device I see blank images and the following error…
Dmitry
  • 1,484
  • 2
  • 15
  • 23
0
votes
2 answers

Android sqlite backup/restore without overwriting

Question in short form: It seems from the followups that I should perhaps emphasize and simplify the core of my question. The core is this: other backup options for Android DBs seems to leave the risk that a restore could overwrite data currently in…
0
votes
0 answers

SQLite vacuum before android auto backup

Android Auto Backup currently has a limit of 25 megabytes. Is there any way to perform a SQLite vacuum on databases before backup manager runs the backup jobs? The reason for this is to keep as many users as possible within the quota.
Jakob Eriksson
  • 18,597
  • 1
  • 25
  • 34
0
votes
0 answers

Backing up an android app's database online

In a small app I'm making, the user can making multiple entries, they can edit them, delete them, and so on, all of this is using an SQLite database. Now, I want the user to be able to backup this data online and restore it at any time in the…
0
votes
1 answer

Timing of using android IPC mechanisms

There are several methods to do IPC in Android - Content Provider, Message, AIDL, Async Task, IntentService ... Seems like each of them aims to solve particular problem. How to decide which I should use? I need a service keep running in background,…
0
votes
1 answer

BackupManager don't call onBackup

I have a database from assets. I want to backup and restore my database. BakupAgent: public class MBackupAgent extends BackupAgentHelper { public static final String PREFS = "data_prefs"; public static final String PREFS_BACKUP_KEY = "myprefs"; //…
arcenciel4
  • 53
  • 7
0
votes
1 answer

Is Sqlite database persistent for android system apps on Device Wipe / Factory Reset

I am developing an application for android devices,later this will be shipped with the android device as a system app. This app has SQLite database implemented in it and later it may have some data in it.So my question is that, if user wipe his/her…
0
votes
1 answer

How to restore database from backup agent saved path android

I am using this code for saving database, using BackupAgent class public class MyBackupAgent extends BackupAgentHelper { String DATABASE_NAME = "mydb"; String DATABASE_FILE_NAME = "mydb.db"; @Override public void onCreate() { …
Qutbuddin Bohra
  • 1,165
  • 1
  • 11
  • 29
0
votes
0 answers

Do I need to used a Synchronized statement every time I read/write to my database?

I'm implementing Android Backup Service and the guide says that reading and writing to external storage is not threadsafe It then says that the onBackup and onRestore functions should be performed in a synchronized statement. My question is: do I…
NSouth
  • 5,067
  • 7
  • 48
  • 83
0
votes
1 answer

What is a PolicyException? I can't find any info on this for Android

When my app tries to backup its data using the BackupTransportService, I get this error in my stack trace. I can't find any information about it online and therefore can't figure out why my backup is failing. Any ideas? 11-13 19:53:44.481:…
NSouth
  • 5,067
  • 7
  • 48
  • 83
0
votes
1 answer

BackupTransportService throws an exception when I try to backup my data

It looks like my onBackup is being called when I run adb shell bmgr run, but there's what looks like a PolicyException. Does anybody know what this means or what's causing it? I'm banging my head here. UPDATE: This only occurs when I try to use…
NSouth
  • 5,067
  • 7
  • 48
  • 83
0
votes
1 answer

BackupAgentHelper crashing with large numbers of files

I have an app that has large quantities of files generated by the user that I need to backup. All content is stored in the db, preferences or 1 of 4 folders. I wrote a simple helper function to generate all the FileBackupHelpers for the files in…
0
votes
1 answer

Best way to backup app data with google drive?

So I have an app that I've written that's using sqlite (so has a db in the data folder) and about 12-50MBs worth of server and user generated content. I need to automatically back this up for the users in such a way that when they move devices/get…
0
votes
1 answer

When should call your SharedPreferencesBackupHelper() / BackupAgent?

Something thats not covered on the Android site is when in, I guess, your Main Activities lifecycle you should call your SharedPreferencesBackupHelper() / BackupAgent. I'm guessing the Agent needs the App to still be running to complete, so…
arober11
  • 1,969
  • 18
  • 31
0
votes
2 answers

Android SQL Backup

Is there any Android Official way of doing sql db backup to SD or Phone? there are several backup helper classes mentioned in the document but all of 'em are pretty useless. I know that the sql file is a simple db file i can use Java IO class to…
Kirk
  • 4,957
  • 2
  • 32
  • 59
1 2 3
14
15