Code example for AsyncTaskLoader

Methods: cancelLoad

0
 
    @Override 
    public boolean cancelLoad() { 
        mElements = null;
 
        return super.cancelLoad(); 
    } 
 
    @Override 
    protected void onStartLoading() { 
        if(mElements != null) {
            deliverResult(mElements);
            return; 
        } 
        mCancel = false;
        forceLoad();
 
    } 
 
    @Override 
Stop searching for code, let great code find you!  Add Codota to your java IDE