Code example for SimpleCursorAdapter

Methods: getCount

0
		public ArrayList<Boolean> itemChecked = new ArrayList<Boolean>();
		public final ArrayList<Long> itemIds=new ArrayList<Long>();
		@SuppressWarnings("deprecation") 
		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.context=context;
			this.dataCursor = c;
			for (int i1 = 0; i1 < this.getCount(); i1++) {
				itemChecked.add(i1, false);
			} 
 
 
		} 
		private class ViewHolder { 
			TextView name;
			CheckBox isactive;
		} 
		@Override 
		public View getView(final int position, View convertView, ViewGroup parent)