Code example for AsyncTaskLoader

Methods: onCanceled

0
		cancelLoad();
	} 
 
	@Override 
	public void onCanceled(List<TrackInfo> 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' 
		// if needed.