Currently, I am using the following statement to create a table in an SQLite database on an Android device.
CREATE TABLE IF NOT EXISTS \'locations\' ( \'_i
Use insertWithOnConflict and set the last parameter (conflictAlgorithm) to CONFLICT_REPLACE.
insertWithOnConflict
conflictAlgorithm
CONFLICT_REPLACE
Read more at the following links:
insertWithOnConflict documentation
CONFLICT_REPLACE flag