Code example for SimpleCursorAdapter

Methods: notifyDataSetChanged

0
			getLoaderManager().initLoader(0, null, this);
		} 
	} 
 
	public void updateList() { 
		mAdapter.notifyDataSetChanged();
	} 
 
	@Override 
	public Loader<Cursor> onCreateLoader(int id, Bundle args) {
		// This is called when a new Loader needs to be created.  This 
		// sample only has one Loader, so we don't care about the ID. 
		// First, pick the base URI to use depending on whether we are 
		// currently filtering. 
		Uri baseUri = TaskColumns.CONTENT_URI;
 
		// Now create and return a CursorLoader that will take care of 
		// creating a Cursor for the data being displayed. 
		return new CursorLoader(getActivity(), baseUri,
				new String[] { TaskColumns._ID, TaskColumns.KEY_TITLE, TaskColumns.KEY_NOTES, TaskColumns.KEY_UPDATED },
				TaskColumns.KEY_TASKLIST_ID + "=?", new String[] { taskListId },	TaskColumns.DEFAULT_SORT);