Code example for AsyncTaskLoader

Methods: onReset, onStopLoading

0
	} 
 
	@Override 
	protected void onStopLoading() { 
		Log.i(TAG, "onStartLoading");
		super.onStopLoading(); 
		// Attempt to cancel the current load task if possible. 
		cancelLoad();
	} 
 
	@Override 
	public void onCanceled(List<AlbumInfo> data) {
		super.onCanceled(data);
		Log.i(TAG, "onCanceled");
		// At this point we can release the resources associated with 'data' 
		// if needed. 
		onReleaseResources(data);
	} 
 
	@Override 
	protected void onReset() { 
		super.onReset(); 
		Log.i(TAG, "onReset");
		// Ensure the loader is stopped 
		onStopLoading(); 
 
		// At this point we can release the resources associated with 'data' 
Experience pair programming with AI  Get Codota for Java