Code example for Cursor

Methods: closegetIntmoveToPosition

0
			try { 
				DB = SQLiteDatabase.openDatabase(DB_PATH, null, SQLiteDatabase.OPEN_READONLY);
 
				// Stash the version 
				final Cursor csr = DB.rawQuery("PRAGMA user_version", null);
				csr.moveToPosition(0);
				DB_VERSION = csr.getInt(0);
				csr.close();
 
			} catch (final SQLiteException e) {
				// bah 
			} 
		} 
 
		return DB;
	} 
 
	/* Return version of current DB */ 
	public static int GetDBVersion() { 
		if (DB == null) {
Stop searching for code, let great code find you!  Add Codota to your java IDE