Code example for CursorAdapter

Methods: swapCursor

0
	 */ 
	@Override 
	public void onLoadFinished( Loader<Cursor> loader, Cursor cursor ) {
		Log.v( TAG, "onLoadFinished : enter" );
		 
		adapter.swapCursor( cursor );
				 
	    getListView().setFastScrollEnabled( true ); 
	     
		Log.v( TAG, "onLoadFinished : exit" );
	} 
 
	/* (non-Javadoc) 
	 * @see android.support.v4.app.LoaderManager.LoaderCallbacks#onLoaderReset(android.support.v4.content.Loader) 
	 */ 
	@Override 
	public void onLoaderReset( Loader<Cursor> loader ) {
		Log.v( TAG, "onLoaderReset : enter" );
		 
		adapter.swapCursor( null );