I have a SQLite database which I fill by reading lines from a txt file inside res/raw/. It works fine, but it takes a few minutes to load everyting in the database, when the app is run for the first time. Is there a faster way to load data in a database?
Share
Your best bet is to load it once, then copy the file into the asset folder. From there, you simply copy the database into the correct location when you are trying to create it for the first time. This question shows how to do that.