Code example for AsyncTaskLoader

Methods: onReset

0
	 
	// If the loader if reseted, we must do some cleaning :) 
	@Override  
	protected void onReset()  
	{ 
		super.onReset(); 
          
		// Stop the loading, if it's being performed 
		onStopLoading(); 
		 
		// Close the cursor if it's opened 
		if ((mCursor != null)&&(!mCursor.isClosed()))
		{ 
			mCursor.close();
			mCursor = null;
		} 
 
		// Close the database 
		if (mDatabaseAdapter != null)
		{ 
Connect your IDE to all the code out there  Get Codota for Java