Code example for SimpleCursorAdapter

Methods: getCursor

0
		super(context, layout, c, new String[] {/*
												 * "id","src","author","date", 
												 * "category" 
												 * ,"resolution","size" 
												 * ,"title","nsfw" 
												 */}, new int[0], 0); 
		aq = new AQuery(context);
		mContext = context;
		mInflater = (LayoutInflater) mContext.getSystemService
				(Context.LAYOUT_INFLATER_SERVICE);
		fgc = ((FigureGalleryCursor) getCursor());
 
	} 
 
	@Override 
	public JSONObject getItem(int position)
	{ 
		if (getCursor().moveToPosition(position))
		{ 
			FigureGalleryCursor fgc = ((FigureGalleryCursor) getCursor());
			return fgc.getObjects().get(position);