Code example for AsyncTaskLoader

Methods: deliverResult

0
 
    T oldResult = mResult;
    mResult = result;
 
    if (isStarted()) {
      super.deliverResult(result);
    } 
 
    if (oldResult != result) {
      releaseResources(oldResult);
    } 
  } 
 
  @Override 
  public void onCanceled(T result) {
    super.onCanceled(result);
    releaseResources(result);
  } 
 
  @Override 
  protected void onReset() {