Code example for AsyncTaskLoader

Methods: onReset

0
	/** 
	 * Handles a request to completely reset the Loader. 
	 */ 
	@Override 
	protected void onReset() { 
		super.onReset(); 
 
		// Ensure the loader is stopped 
		onStopLoading(); 
 
		// Stop monitoring for changes. 
		if (mPackageObserver != null) {
			getContext().unregisterReceiver(mPackageObserver);
			mPackageObserver = null;
		} 
	} 
 
	/** 
	 * Handles a request to start the Loader. 
	 */ 
	@Override