Code example for SimpleCursorAdapter

Methods: getCursor

0
		colorIsBorrowed = res.getColor(R.color.listViewBorrowed);
	} 
	 
	public int getComicId(int position)
	{ 
		Cursor cursor = getCursor();
		if (cursor.moveToPosition(position))
			return cursor.getInt(0);
		return 0; 
	} 
	 
	@Override 
	public View getView(int position, View convertView, ViewGroup parent) {
		Cursor cursor = getCursor();
	    if (cursor.moveToPosition(position)) 
	    { 
	    	ComicHolder holder;
	    	 
	    	if (convertView == null)
	    	{ 
Stop searching for code, let great code find you!  Add Codota to your java IDE