Code example for SQLiteOpenHelper

Methods: getWritableDatabase

0
      SQLiteOpenHelper db=(SQLiteOpenHelper)params[0];
      String table=(String)params[1];
      String where=(String)params[2];
      String[] whereParams=(String[])params[3];
 
      db.getWritableDatabase().delete(table, where, whereParams);
 
      return(null); 
    } 
  } 
 
  private class ExecSQLTask extends 
      ContentChangingTask<Object, Void, Void> {
    ExecSQLTask(SQLiteCursorLoader loader) {
      super(loader);
    } 
 
    @Override 
    protected Void doInBackground(Object... params) {
      SQLiteOpenHelper db=(SQLiteOpenHelper)params[0];
Experience pair programming with AI  Get Codota for Java