Code example for SimpleCursorAdapter

Methods: getCount

		public ArrayList<Boolean> itemChecked = new ArrayList<Boolean>();
		public final ArrayList<Long> itemIds=new ArrayList<Long>();
		public MyCustomAdapter(Context context, int layout, Cursor c,
				String[] from, int[] to, int i) {
			super(context, layout, c, from, to);
			// TODO Auto-generated constructor stub 
			this.dataCursor = c;
			for (int i1 = 0; i1 < this.getCount(); i1++) {
				itemChecked.add(i1, false);
		private class ViewHolder { 
			TextView name;
			CheckBox isactive;
Connect your IDE to all the code out there  Get Codota for Java