Code example for LoaderManager

Methods: initLoader

0
		startLoading(); 
	} 
 
	private void startLoading() { 
		getListView().invalidateViews();
		mLoaderManager.initLoader(PACKAGE_LIST_LOADER, null, this);
	} 
 
	private void restartLoading() { 
		mLoaderManager.restartLoader(PACKAGE_LIST_LOADER, null, this);
	} 
 
	@Override 
	public Loader<Cursor> onCreateLoader(int id, Bundle args) {
		Uri baseUri;
		if (mCurFilter != null) {
			baseUri = Uri.withAppendedPath(
					PackageListProvider.CONTENT_FILTER_URI, 
					Uri.encode(mCurFilter));
		} else { 
			baseUri = PackageListProvider.CONTENT_URI;