I have created a SQLite file and putted it on to assets folder. Now I am able to read the data from that file but I don\'t have any idea how to write to this database file.
As the /asset directory is read only (because android .apk file is read-only) so you can't write anything in asset folder file, you have to first copy that sqlite database file into your application's internal storage /data/data/ directory then you can modify your database file..
Copy your pre-populated sqlite database file into data/data/,
Open that database file (from /databases/ directory) in your sqlite database helper class..
Perform insert, update or select operation on that database..