Accessing SQLite databases using the ContentValues class
Inserting and updating rows in a SQLite database
First, you need to open your SQLite database, which can be done as follows:
After opening the database, you can easily insert or update rows by using the ContentValues class. The following examples assume that a first name is given by str_edtfname and a last nameby str_edtlname. You also need to replace table_name by the name of your table that you want to modify.
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0