Code example for AsyncTaskLoader

Methods: onCanceled

0
		cancelLoad();
	} 
	 
	@Override 
	public void onCanceled(Cursor data) {
		super.onCanceled(data);
		onReleaseResources(data);
	} 
	 
	/** 
     * Handles a request to completely reset the Loader. 
     */ 
	@Override 
	protected void onReset() { 
		super.onReset(); 
		 
		onStopLoading(); 
 
        // At this point we can release the resources associated with 'mCursor' 
        // if needed. 
        if (mCursor != null && !mCursor.isClosed()) {