Code example for WebView

Methods: clearCachedestroysetWebChromeClientsetWebViewClientstopLoading, destroyDrawingCache, removeAllViews

2
			pdObj.dismiss();
		} 
		pdObj = null;
		//WebViewオブジェクト開放処理 
		if(wvObj != null) {
			wvObj.stopLoading();
			wvObj.clearCache(true);
			wvObj.destroyDrawingCache();
			wvObj.setWebChromeClient(null);
			wvObj.setWebViewClient(null);
			dlgClient = null;
			gcObj = null;
			this.unregisterForContextMenu(wvObj);
			//WebView.destroy() called while still attached!エラー対策 
			rlObj.removeView(wvObj);
			wvObj.removeAllViews();
			//WebViewのdestroy()を実施しないとActivity has leaked IntentReceiver.XXX.XXX.XXX.browsermanagement.Errorが発生し、 
			//BrowserManagementに対してunregisterReceiver()を実行せよと指摘される。 
			wvObj.destroy();
			wvObj = null;
		} 
		Log.d("DEBUG", "NimbusInfoActivity onDestroy End");
	}