0

I have a big database that I use on my website and I would like to use it for an android application without an Internet connection.

My database can export to .db file. How should I do to use this file for my android app.

Regards

kristianp
  • 5,496
  • 37
  • 56
Giffary
  • 3,060
  • 12
  • 50
  • 71

1 Answers1

0

Keep copy of your database in asset folder, copy that database in /data/data/your.package.name/databases while you loading your application first time.

if your database is larger than 1MB Divide the database in small parts.

ex: if size = 8 MB make 8 parts of 1MB than join that parts problematically while copying.

MAC
  • 15,799
  • 8
  • 54
  • 95
  • Better to keep it all in one piece and store it on the SD card. Less error prone. Here's how to load a divided up file: http://stackoverflow.com/questions/2860157/load-files-bigger-than-1m-from-assets-folder – debracey Apr 23 '12 at 00:58