Android 中 WebChromeClient 获取网站标题图标等信息

            private WebView webView01;
	        private ProgressBar progressBar;
	        private ImageView iconIV;
	        private WebIconDatabase webIcondb;

                iconIV = (ImageView) findViewById(R.id.icon);
		webIcondb = WebIconDatabase.getInstance();
		webIcondb.open(getDir("icons", MODE_PRIVATE).getPath());
		progressBar = (ProgressBar)findViewById(R.id.progress01);

 		webView01 = (WebView) findViewById(R.id.WebView01);
		webView01.setOnTouchListener(this);
		webView01.setWebViewClient(new WebViewClient() {

		});

		webView01.setWebChromeClient(new WebChromeClient() {
                        //获取网页标题
			@Override
			public void onReceivedTitle(WebView view, String title) {
				super.onReceivedTitle(view, title);
				titleTV.setText(title);
			}
                        //获取网页图标
			@Override
			public void onReceivedIcon(WebView view, Bitmap icon) {
				super.onReceivedIcon(view, icon);
				iconIV.setImageBitmap(icon);
			}
			//获取网页打开进度
			@Override
			public void onProgressChanged(WebView view, int newProgress) {
				progressBar.setProgress(newProgress);
				if(newProgress == 100) {
					progressBar.setProgress(0);
                                        //获取当前网页地址
                                        url01.setText("url: " + webView01.getUrl());
				}
			}
		});