I’am developing an application which uses sqlite for autocomplete textview. The database has more than 8000 records. Creating a database can be done with a query in onCreate(). But how do i create a database with 8000+ records in it. writing insert query for 8000 records sounds worst to me.
What’s the best way to create a database with 8000+ records in it. Is there any way like dumping sql file like how we do in mysql.
Instead, you should put your database with a table (having 8000 records) inside the Assets folder and write a logic to Copy existing database inside your android app.
Check links: