Tfdsqlitebackup android Delphi xe7

Asked

Viewed 312 times

1

I’m trying to do backup of my Android application, application made in Delphi. I am using the component TFDSQliteBackup with the following code, it executes and creates the file, but the file is blank someone knows how to proceed??

try
  try
    DataModule1.FDConnection1.Close;
    DataModule1.backup.DestDatabase:= '/storage/sdcard0/tedesco.controlefinanceiro.SQLITE3';
    DataModule1.backup.Backup;
  except
    on e:Exception do
    begin
      ToastMessage(e.Message);
    end;
  end;
finally
   ToastMessage('Backup Concluido');
end;
  • does not generate any exception?

  • error: Unable to open database

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.