Code example for SQLiteOpenHelper

Methods: getWritableDatabase

0
      String table=(String)params[1];
      ContentValues values=(ContentValues)params[2];
      String where=(String)params[3];
      String[] whereParams=(String[])params[4];
 
      db.getWritableDatabase()
        .update(table, values, where, whereParams);
 
      return(null); 
    } 
  } 
 
  private class ReplaceTask extends 
      ContentChangingTask<Object, Void, Void> {
    ReplaceTask(SQLiteCursorLoader loader) {
      super(loader);
    } 
 
    @Override 
    protected Void doInBackground(Object... params) {