Code example for SQLiteDatabase

Methods: rawQuery

0
   * Runs on a worker thread and performs the actual 
   * database query to retrieve the Cursor. 
   */ 
  @Override 
  protected Cursor buildCursor() {
    return(db.getReadableDatabase().rawQuery(rawQuery, args));
  } 
 
  /** 
   * Writes a semi-user-readable roster of contents to 
   * supplied output. 
   */ 
  @Override 
  public void dump(String prefix, FileDescriptor fd,
                   PrintWriter writer, String[] args) {
    super.dump(prefix, fd, writer, args);
    writer.print(prefix);
    writer.print("rawQuery=");
    writer.println(rawQuery);
    writer.print(prefix);
    writer.print("args=");