I'm developping an app with targetSdkVersion 23
.
I would like to use auto-backup service from Google, but it does not work.
I'm using example found on this page
I have configured my AndroidManifest.xml
with
android:fullBackupContent="@xml/akbackupscheme"
and akbackupscheme.xml
:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="mysharedpref"/>
<include domain="database" path="mydatabase.db"/>
</full-backup-content>
I'm using adb to test it and these are traces I got :
./adb shell bmgr fullbackup com.*****
Performing full transport backup
./adb shell bmgr restore com.*****
Unable to restore package com.*****
done
Here are some traces :
11-25 17:05:47.977 1419-1419/? D/AndroidRuntime: Calling main entry com.android.commands.bmgr.Bmgr
11-25 17:05:47.982 603-1101/? W/BackupManagerService: Requested unavailable transport: com.google.android.gms/.backup.BackupTransportService
11-25 17:05:47.982 603-1101/? W/BackupManagerService: Transport not present; full data backup not performed
11-25 17:05:47.982 603-1101/? I/BackupManagerService: Full backup not currently possible -- key/value backup not yet run?
11-25 17:05:47.982 603-1101/? D/BackupManagerService: Done with full transport backup.