I try to save/backup sd files on cloud but can't find a way to do this.
I see BackupAgentHelper
but it's said on doc it's only for sharedPreferences
or internal files.
Here is a way to use FileBackupHelper
with a file on SD card ? Or maybe I have to use another feature for backup ?
I try this :
File root = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+Globals.BASE_PATH);
FileBackupHelper helper = new FileBackupHelper(this, root.getAbsolutePath());
addHelper(FILES_BACKUP_KEY, helper);
But it's not working...
Fixed : I use DropBox API to backup/restore
Android save/backup API is not useful in my case cause i want to save SD files... so i have to use external save/backup system like GDrive or DropBox. I choose DropBox cause it's works really good and it's really simple to use.