Shipping an existing sqlite DB with an Android app

I am making an Android app that relies heavily on a database (right now in sqlite format). I have tried drag-and-dropping the db onto the project, but when compiling or running, Xojo complains about “unknown reference.”

So for now I am creating a new db if it isn’t present, populating it with two tables (around 20k rows). So it… takes time…

How can I ship a pre-populated sqlite db in my Android app?

Have a look at Copy Files Step in the documentation
It covers exactly what you’re looking for.

4 Likes

Thanks a lot. This seems to be exactly what I need, indeed…