Code example for AsyncTaskLoader

Methods: onReset

0
        return data;
    } 
 
    @Override 
    protected void onReset() { 
        super.onReset(); 
 
        // Ensure the loader is stopped 
        onStopLoading(); 
    } 
 
    @Override 
    protected void onStartLoading() { 
        forceLoad();
    } 
 
    @Override 
    protected void onStopLoading() { 
        cancelLoad();
    }