Code example for ListFragment

Methods: getLoaderManager, onDestroy

0
    } 
     
    @Override 
	public void onDestroy() 
	{ 
		getLoaderManager().destroyLoader(0);
		super.onDestroy(); 
	} 
     
	private class SourcesCursorLoaderCallback implements LoaderManager.LoaderCallbacks<Cursor>
	{ 
		// In the constructor, obtain a new Loader 
		@Override 
		public Loader<Cursor> onCreateLoader(int _id, Bundle _args) 
		{ 
			return new SourcesCursorLoader(mParentActivity, mSessionID);
		} 
 
		@Override 
		public void onLoadFinished(Loader<Cursor> _loader, Cursor _cursor) 
Experience pair programming with AI  Get Codota for Java