Jump to content
Sign in to follow this  
admar2010

Export Sqlite data from your Android device

Recommended Posts

I'm developing an application for an Android device. I use Sqlite database during this application. I could not export the Sqlite databse I use to the android device SDCard. This procedure is working .

 

procedure TForm1.Button1Click(Sender: TObject);
var
  CommonPath: string;
  SourceFile: string;
  BackupFile: string;
begin
  CommonPath := System.IOUtils.TPath.GetDocumentsPath;
  SourceFile := System.IOUtils.TPath.Combine(CommonPath, 'MySource.db');
  BackupFile := System.IOUtils.TPath.Combine(CommonPath, 'MyBackup.db');

  FDSQLiteBackup1.Database := SourceFile;
  FDSQLiteBackup1.DestDatabase := BackupFile;
  FDSQLiteBackup1.Backup;
end;


//FDconnection1.Params.Values['database'] := GetHomePath+PathDelim+'aplantrans.db';

 

I did not solve BackupFile  . I want to use

SdCard 

 

BackupFile := System.IOUtils.TPath.Combine(CommonPath,

 


 

 

Edited by admar2010

Share this post


Link to post
Guest
6 hours ago, admar2010 said:

I'm developing an application for an Android device. I use Sqlite database during this application. I could not export the Sqlite databse I use to the android device SDCard.

Verify yours privilegies and project options include "Secure file sharing" in "Entitlement list"

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×