Code example for LoaderManager

Methods: restartLoader

0
		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;
		} 
		CursorLoader cursorLoader = new CursorLoader(mContext, baseUri, null,
				null, null, PackageListProvider.HWA_ENABLED + ", " 
						+ PackageListProvider.IS_SYSTEM + ", "