Code example for LoaderManager

Methods: destroyLoader, initLoader

0
		return super.onOptionsItemSelected(item);
	} 
 
	private void getRequestToken() { 
		final LoaderManager lm = getLoaderManager();
		lm.destroyLoader(0);
		if (mLoaderInitialized) {
			lm.restartLoader(0, null, this);
		} else { 
			lm.initLoader(0, null, this);
			mLoaderInitialized = true;
		} 
	} 
 
	class AuthorizationWebViewClient extends WebViewClient {
 
		@Override 
		public void onPageFinished(final WebView view, final String url) {
			super.onPageFinished(view, url);
			setProgressBarIndeterminateVisibility(false); 
		}