I have this inquiry about the Android database [in particular of SQLite version 3].
As we all know, in-order to create a database we need create the tables and table records on the class or file [convert then into database if necessary].
But this process would take time upon the execution of the table creation and default table records if any. Is there a way to omit this execution time? Or rather is there a way to inject the *.db directly to the *.apk to avoid the insertion of default table records?
Thanks in advance
I’d think you could put the .db file in the /assets folder and then read it at runtime with:
You’d then need to write the content out to your data directory before attempting to access it with database code.