문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top