Code example for SimpleCursorAdapter

Methods: getCursor

		mColorIsBorrowed = res.getColor(R.color.listViewBorrowed);	
		mImagePath = imagePath;
	public Aggregate getAggregate(int position) {
		Cursor cursor = getCursor();
		if (cursor.moveToPosition(position)) {
			return new Aggregate(cursor.getInt(0), cursor.getString(1), cursor.getInt(5));
		return null; 
	public View getView(int position, View convertView, ViewGroup parent) {
		Cursor cursor = getCursor();
		if (cursor.moveToPosition(position)) 
			AggregateHolder holder;
			if (convertView == null)
Connect your IDE to all the code out there  Get Codota for Java