Code example for Cursor

Methods: closeisClosed

0
	public Cursor getCursor() {
		return mCursor;
	} 
	 
	public void close() { 
		if (!mCursor.isClosed()) mCursor.close();
	} 
	 
	public static class SqliteWordsCursor extends WordsCursor { 
		private final SQLiteDatabase mDb;
 
		SqliteWordsCursor(SQLiteDatabase db, Cursor cursor) {
			super(cursor);
			mDb = db;
		} 
 
		@Override 
		public void close() { 
			super.close(); 
			if (mDb.isOpen())
				mDb.close();