Code example for ListFragment

Methods: onResume, setListAdapter

0
     
    @Override 
    public void onResume() 
    { 
    	mSourcesAdapter.swapCursor(null);
    	setListAdapter(mSourcesAdapter);
    	super.onResume(); 
    } 
     
    @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)