Code example for ListFragment

Methods: getLoaderManager, onDestroy, setListAdapter

0
	} 
	 
	@Override 
	public void onDestroy() 
	{ 
		setListAdapter(null);
		getLoaderManager().destroyLoader(0);
		super.onDestroy(); 
	} 
 
	private class DatabaseCursorLoaderCallback implements LoaderManager.LoaderCallbacks<Cursor>
	{ 
		// In the constructor, obtain a new Loader 
		@Override 
		public Loader<Cursor> onCreateLoader(int _id, Bundle _args) 
		{ 
			return mLoader;
		} 
 
		@Override 
		public void onLoadFinished(Loader<Cursor> _loader, Cursor _cursor)