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?
-
Nope, to do so you have put your DB inside assets folderVenomVendor– VenomVendor2012年08月16日 08:00:51 +00:00Commented Aug 16, 2012 at 8:00
4 Answers 4
Please see below link for copy database from your assets folder.
Comments
Yes, you should put your DB in the assets folder...
3 Comments
That is not the case..your database wont get ported on the device..
Comments
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.