I think that this is rather easy question. I am too young in android stuff already. I want to prepare application which will be using database. In every example I’ve shown, there is an empty database where application is firstly started and after that there are some inserts. I want to have app with rather big db so I want to have filled db when app is started. How can I prepare db and attach it to program?
Share
put your filled database in Package’s Asset directory,
at application runtime just copy that database to application’s internal storage like
data/data/<package name>/databasedirectory.EDIT: this for copy database from asset directory to database directory,