0

I would like to know how I can make a copy of my current sqlite db to a separate folder. Also, I need to know how I can replace a brand new database by the stored db.

I can't use the Android backup engine because I will also copy some other files and folders.

Any help is appreciatted!

Carlos Pereira
  • 1,914
  • 6
  • 24
  • 35
  • possible duplicate of [Backup and restore SQLite database to sdcard](http://stackoverflow.com/questions/2170031/backup-and-restore-sqlite-database-to-sdcard) – CharlesB May 18 '12 at 05:28

1 Answers1

0

Popular question. You can find a few different way to copy files on Android devices, and a SQLite database is a simple, self contained file that you copy/replace like most others. This code works dandy: How do I backup a database file to the SD card on Android?. You can find other methods in the Related column as well. -->

Community
  • 1
  • 1
Sam
  • 86,580
  • 20
  • 181
  • 179