How to add conflict replace for this table in sqlite?
<p>I am having trouble adding on conflict replace for a Unique on two keys:</p>

<p>Here is the table:</p>

<pre><code>private static final String CREATE_TABLE_USERS = "CREATE TABLE "
        + TABLE_USERS + "("
        + KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
        + KEY_USER_ID + " TEXT NOT NULL,"
        + KEY_IS_TYPE + " INTEGER,"
        + KEY_DATE_ADDED + " LONG,"
        + "UNIQUE (" + KEY_USER_ID + ", " + KEY_IS_TYPE + ")"
        + ")";
</code></pre>

<p>How I insert them in Android SQLite Helper</p>

<pre><code>SQLiteDatabase db = this.getWritableDatabase();
        ContentValues values = new ContentValues();
 return db.insert(TABLE_USERS, null, values);
</code></pre>

<p>I tried doing <code>UNIQUE ON CONFLICT REPLACE</code> but it does not work.</p>