Code example for Cursor

Methods: closegetStringmoveToNext

0
    SQLiteDatabase db = this.dbHelper.getReadableDatabase();
    try { 
      Cursor cursor = db.query(TABLE, DB_TEXT_COLUMNS, C_ID + "=" + id, null,
          null, null, null); 
      try { 
        return cursor.moveToNext() ? cursor.getString(0) : null;
      } finally { 
        cursor.close();
      } 
    } finally { 
      db.close();
    } 
  } 
   
  /** 
   * Deletes ALL the data 
   */ 
  public void delete() { 
    // Open Database 
    SQLiteDatabase db = dbHelper.getWritableDatabase();