Code example for SimpleCursorAdapter

Methods: getCursor

0
		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; 
	} 
 
	@Override 
	public View getView(int position, View convertView, ViewGroup parent) {
		Cursor cursor = getCursor();
		if (cursor.moveToPosition(position)) 
		{ 
			AggregateHolder holder;
 
			if (convertView == null)
			{