Code example for CursorAdapter

Methods: changeCursor

0
 
 
	@Override 
	public void onLoaderReset(Loader<Cursor> arg0)
	{ 
		mAdapter.changeCursor(null);
 
	} 
 
	/** 
	 * This extends the {@link CursorAdapter}. The column index for the list name, list color and the current selection state is computed when the 
	 * {@link Cursor} is swapped. It also maintains the changes made to the current selection state through a {@link HashMap} of ids and selection state. If the 
	 * selection state is modified and then modified again then it is removed from the HashMap because it has reverted to the original state. 
	 *  
	 * @author Arjun Naik<arjun@arjunnaik.in> 
	 *  
	 */ 
	private class VisibleListAdapter extends CursorAdapterLayoutInflater inflater;
		private int listNameColumn, listColorColumn, compareColumn, accountNameColumn;