Code example for AsyncTaskLoader

Methods: deliverResult

0
            mApps = apps;
 
            if (isStarted()) {
                // If the Loader is currently started, we can immediately 
                // deliver its results. 
                super.deliverResult(apps);
            } 
 
            // 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 (oldApps != null) {
                onReleaseResources(oldApps);
            } 
        } 
 
        /** 
         * Handles a request to start the Loader. 
         */ 
        @Override protected void onStartLoading() { 
            if (mApps != null) {