Code example for AsyncTaskLoader

Methods: onReset

0
        cancelLoad();
    } 
 
    @Override 
    protected void onReset() { 
        super.onReset(); 
 
        // Stop the Loader if it is currently running. 
        onStopLoading(); 
 
        // Get rid of our cache if it exists. 
        mRestResponse = null;
 
        // Reset our stale timer. 
        mLastLoad = 0;
    } 
 
    private static void attachUriWithQuery( HttpRequestBase request, Uri uri, Bundle params ) {
        try { 
            if ( params == null ) {
                // No params were given or they have already been