Code example for WebView: Displaying web pages

Methods: getSettingsloadUrlsetPictureListenersetWebViewClient

0
		LinkedinDialog.factory = LinkedInApiClientFactory.newInstance(LINKEDIN_CONSUMER_KEY, LINKEDIN_CONSUMER_SECRET);
 
		LinkedinDialog.liToken = LinkedinDialog.oAuthService.getOAuthRequestToken(OAUTH_CALLBACK_URL);
 
		WebView mWebView = (WebView) findViewById(R.id.webkitWebView1);
		mWebView.getSettings().setJavaScriptEnabled(true);
 
		Log.i("LinkedinSample", LinkedinDialog.liToken.getAuthorizationUrl());
		mWebView.loadUrl(LinkedinDialog.liToken.getAuthorizationUrl());
		mWebView.setWebViewClient(new HelloWebViewClient());
		 
		mWebView.setPictureListener(new PictureListener()
		{ 
			@Override 
			public void onNewPicture(WebView view, Picture picture)
			{ 
				if(progressDialog != null && progressDialog.isShowing())
				{ 
					progressDialog.dismiss(); 
				} 
Contextual code suggestions in your IDE  Get Codota for Java