Code example for ListFragment

Methods: getActivity, getListView, getView

0
	/** 
	 * Handle {@link TrailsQuery} {@link Cursor}. 
	 */ 
	private void onTrailOrSearchQueryComplete(Cursor cursor) {
		mCursor = cursor;
		getActivity().startManagingCursor(mCursor);
		mAdapter.changeCursor(mCursor);
		if (mCheckedPosition >= 0 && getView() != null) {
			getListView().setItemChecked(mCheckedPosition, true);
		} 
	} 
 
	/** 
	 * Handle {@link AreasQuery} {@link Cursor}. 
	 */ 
	private void onAreaQueryComplete(Cursor cursor) {
		if (cursor != null) {
			try { 
				if (!cursor.moveToFirst()) {
					return; 
				}