Code example for LoaderManager

Methods: restartLoader

0
	 * Loader 
	 */ 
	public void doLoader( View v )
	{ 
		LoaderManager lm = getSupportLoaderManager();
		Loader<String> loader = lm.restartLoader( 0, null, this );
		loaderProgress.setVisibility( View.VISIBLE );
		loaderButton.setVisibility( View.INVISIBLE );
		loader.forceLoad();
	} 
 
	@Override 
	public Loader<String> onCreateLoader( int id, Bundle args )
	{ 
		return new MyLoader( this );
	} 
 
	@Override 
	public void onLoadFinished( Loader<String> loader, String str )
	{ 
		loaderProgress.setVisibility( View.INVISIBLE );