Code example for AsyncTaskLoader

Methods: onReset

0
	/** 
     * 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()) {
            onReleaseResources(mCursor);           
        }	 
        mCursor = null;
	} 
	 
	/** 
     * Helper function to take care of releasing resources associated 
     * with an actively loaded data set. 
Experience pair programming with AI  Get Codota for Java