Reputation: 49
If I create the SQLite DB and tables with some data at the time of developement then build the apk of that app,Does that tables and data will remain the same when I install that apk on android Device?
Upvotes: 0
Views: 283
Reputation: 1115
The thing that you need to understand is that your application doesn't get ported with a database. It will be created on the device when your application runs for the first time. That's why the onCreated()
method runs just once.
Upvotes: 0
Reputation: 22291
Please see below link for copy database from your assets folder.
Using your own SQLite database in Android applications
Upvotes: 1
Reputation: 735
That is not the case..your database wont get ported on the device..
Upvotes: 0