Code example for AsyncTaskLoader

Methods: onCanceled

0
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public void onCanceled(List<T> data) {
        super.onCanceled(data);
 
        if (cursor != null && !cursor.isClosed()) {
            cursor.close();
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public void onReset() { 
        super.onReset(); 
 
        if (cursor != null && !cursor.isClosed()) {