Code example for Fragment

Methods: getLoaderManageronDetach

0
    @Override 
    public void onDetach() { 
         
        // Destroys variables and references, and catches Exceptions 
        try { 
            getLoaderManager().destroyLoader(0);
            if (mAdapter != null) {
                mAdapter.changeCursor(null);
                mAdapter = null;
            } 
        } catch (Throwable localThrowable) {
        } 
         
        // Always call the super method last 
        super.onDetach(); 
        return; 
    } 
 
    /* 
     * This is invoked whenever the visibility state of the Fragment changes 
Stop searching for code, let great code find you!  Add Codota to your java IDE