In my application I am creating many tables in the sqlite database but in that one table contains more than 100k rows I get data from server using http connection. Getting this kind of many records causing much more time for me so to avoid this problem I want to connect my tablet through PC and I want to place txt file(which has insert statements) in the tablet.
Now how can I access that txt file in my application and how can I insert data in my table using that txt file and into which location I have to copy this txt file to access it from my application.
My DB file size also 273 MB, so I don’t think it’s possible to place it in the assets folder
you can copy the file to
assetsfoldercode example:
above code require the every line of the txt file is a sql sentence