How to prepopulate an sqlite database at development time? I found a tutorial how to use a prepopulated sqlite with android but I want to populate the database with data from a text file. Is it possible to write a java program that will read the data from a text file insert into sqlite database and save the database?
How to prepopulate an sqlite database at development time? I found a tutorial how
Share
Yes, what you described is what you need to do:
Done. Your DB is now pre-populated.
Make sure you flag this “pre population:” command so you don’t run it twice.