Code example for AsyncTaskLoader

Methods: deliverResult

0
 
        if (isStarted()) 
        { 
            // If the Loader is currently started, we can immediately 
            // deliver its results. 
            super.deliverResult(schedules);
        } 
 
        // At this point we can release the resources associated with 
        // 'oldApps' if needed; now that the new result is delivered we 
        // know that it is no longer in use. 
        if (oldSchedules != null) 
        { 
            onReleaseResources(oldSchedules);
        }    	 
    } 
     
    /** 
     * Handles a request to start the Loader. 
     */ 
Experience pair programming with AI  Get Codota for Java