Code example for AsyncTaskLoader

Methods: onCanceled

0
 
        /** 
         * Handles a request to cancel a load. 
         */ 
        @Override public void onCanceled(String note) {
            super.onCanceled(note);
 
            // At this point we can release the resources associated with 'note' 
            // if needed. 
            onReleaseResources(note);
        } 
 
        /** 
         * Handles a request to completely reset the Loader. 
         */ 
        @Override protected void onReset() { 
            super.onReset(); 
 
            // Ensure the loader is stopped 
            onStopLoading();