Code example for LoaderManager

Methods: restartLoader

0
				.fragmentArgumentsToIntent(getArguments()); 
		mRingQueryToken = BreedRingsQuery._TOKEN;
		mAdapter = new RingListAdapter(getActivity());
		setListAdapter(mAdapter);
		LoaderManager manager = getLoaderManager();
		manager.restartLoader(BreedRingsQuery._TOKEN, getArguments(), this);
		manager.restartLoader(UpcomingBreedRingQuery._TOKEN, getArguments(),
				this);
	} 
 
	@Override 
	public void onAttach(Activity activity) {
		// TODO Use URI from arguments 
		super.onAttach(activity);
		activity.getContentResolver().registerContentObserver(
				DogshowContract.BreedRings.buildEnteredRingsUri(), true, 
				mObserver);
 
	} 
 
	@Override