Code example for AsyncTaskLoader

Methods: onCanceled

0
		} 
	} 
 
	@Override 
	public void onCanceled(GeoCodeQuery result) {
		super.onCanceled(result);
		// Attempt to cancel our asynctask 
		cancelLoad();
		mCancelled = true;
		// Don't need any data 
		mResult = null;
	} 
 
	// called when an Activity requests a loader to be reset 
	@Override 
	public void onReset() { 
		super.onReset(); 
		mResult = null;
		cancelLoad();
	}