My app contains a sqlite db that will be opened by the end user.
So far I have tried an approach I have found to place the text file in the resources/raw. From there I will read it and generate the db.
I am wondering though, is there an easier approach?
With this approach I am pursuing, so far I am running into the issue that the exception is kicking in, rather than the file being displayed. The file is in the resources.ap_ though.
Is there some snippet out there that copies the SQLite db to resources/raw and from there it can be simply copied to the filessytem? I have found some methods under java.io.File: "mkdir", "create" and "rename" file, but not "copy":
Many thanks for your help,