title: Using insertWithOnConflict for update or insert
body: <p>I need to insert or update and I found the method insertWithOnConflict of the SQLiteDatabase, but I do not know how it checks if the entry already exists.</p>
  
  <p>Theoretically I need a "Where" argument to check if a certain ID exists, and if so, it should replace all other columns.</p>
  
  <p>This is what I have now, but I don´t think that the second argument is the unique id</p>
  
  <pre><code>    ContentValues args = new ContentValues();
      args.put(AppDatabase.COLUMN_ID, entry.getId());
      args.put(AppDatabase.COLUMN_NAME, entry.getAppname());
      args.put(AppDatabase.COLUMN_URL, entry.getAppUrl());
      database.insertWithOnConflict(AppDatabase.TABLE_FILELIST, COLUMN_ID, args, SQLiteDatabase.CONFLICT_REPLACE);
  </code></pre>
  
  <p>How can I manage this behaviour?</p>