Code example for AsyncTaskLoader

Methods: onReset

0
    releaseResources(result);
  } 
 
  @Override 
  protected void onReset() { 
    super.onReset(); 
 
    // Ensure the loader is stopped 
    onStopLoading(); 
 
    releaseResources(mResult);
    mResult = null;
  } 
 
  @Override 
  protected void onStartLoading() { 
    if (mResult != null) {
      deliverResult(mResult);
    } 
    if (takeContentChanged() || mResult == null) {
      forceLoad();