Code example for CursorAdapter

Methods: changeCursor

0
         
        // 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 
     */ 
    @Override 
    public void onHiddenChanged(boolean viewState) {