Code example for SimpleCursorAdapter

Methods: getCursor

0
	} 
 
	@Override 
	public JSONObject getItem(int position)
	{ 
		if (getCursor().moveToPosition(position))
		{ 
			FigureGalleryCursor fgc = ((FigureGalleryCursor) getCursor());
			return fgc.getObjects().get(position);
		} 
		return null; 
	} 
 
	@Override 
	public long getItemId(int position)
	{ 
		if (getCursor().moveToPosition(position))
		{ 
			FigureGalleryCursor fgc = ((FigureGalleryCursor) getCursor());
			return fgc.getLong(fgc.getColumnIndex("id"));
		}