Code example for CursorAdapter

Methods: changeCursor

0
        /* 
         *  Changes the adapter's Cursor to be the results of the load. This forces the View to 
         *  redraw. 
         */ 
         
        mAdapter.changeCursor(returnCursor);
    } 
 
    /* 
     * Invoked when the CursorLoader is being reset. For example, this is called if the 
     * data in the provider changes and the Cursor becomes stale. 
     */ 
    @Override 
    public void onLoaderReset(Loader<Cursor> loader) {
         
        // Sets the Adapter's backing data to null. This prevents memory leaks. 
        mAdapter.changeCursor(null);
    } 
 
    /* 
     * This callback is invoked when the system has to destroy the Fragment for some reason. It