Is there a way to replace a complete SQLite DB? I'm looking at building an app which holds a lot of data and I need to be able to update it. Fortunately I am able to verify that the DB structure won't change, just the data. Is there a clean way of doing this?
-- EDIT--
Apologies - I need to add more detail:
In order to update the data in the app, the plan is to just replace the DB which will be grabbed from a server somewhere. So I won't be using the onUpgrade
or adding data manually - I want to dump the existing file and copy a new file in to replace the old one.
I think a DB will normally be stored in "/data/data/YOUR_PACKAGE/databases/", do I have access to this directory? In which case can I jst download the file from the server and copy it over the top (obviously making sure that nothing is accessing the file first etc)