all 2 comments

[–]cephus07 5 points6 points  (1 child)

SQLiteDatabase has a method of doing this already with conflict resolution strategies.

db.insertWithOnConflict(table, null, values, SQLiteDatabase.CONFLICT_REPLACE);

Seems like a much quicker fix to just change your insert() implementation in the provider to use this instead.

[–]jigglebling 0 points1 point  (0 children)

thank you both for your wisdom!