Code example for SimpleCursorAdapter

Methods: setViewBinder

0
			cursor = getDataToFillList();
		} else { 
			cursor = (Cursor) data;
		} 
		startManagingCursor(isActivityManagingCursor()); 
		adapter = new SimpleCursorAdapter(getActivity(), getRowResource(), cursor, getFrom(), getTo());
		getListView().setAdapter(adapter);
		getListView().setSelection(cursor.getPosition());
		adapter.setViewBinder(getViewBinder());
		getListView().setOnItemClickListener(getOnItemClickListener());
	} 
 
	@Override 
	public void onStop() { 
		super.onStop(); 
		getActivity().unregisterReceiver(loadingDone);
	} 
 
	private void startManagingCursor(boolean managingCursor) {
		if (managingCursor) {
			getActivity().startManagingCursor(cursor);