Code example for SQLiteDatabase

Methods: isOpenquery

0
		database = SQLiteDatabase.openDatabase(path, null,
				SQLiteDatabase.NO_LOCALIZED_COLLATORS);
	} 
	 
	public boolean validDatabase(){ 
		return (database == null)? false : database.isOpen();
	} 
 
   public Cursor getVersesBoundsForPage(int page){
      if (!validDatabase()) return null; 
      return database.query(GLYPHS_TABLE,
              new String[]{ COL_PAGE, COL_LINE, COL_SURA, COL_AYAH,
                      COL_POSITION, MIN_X, MIN_Y, MAX_X, MAX_Y },
              COL_PAGE + "=" + page,
              null, null, null, 
              COL_SURA + "," + COL_AYAH + "," + COL_POSITION);
   } 
	 
	public Rect getPageBounds(int page) {
		if (!validDatabase()) return null; 
		String[] colNames = new String[] {