webView加载酷狗音乐或者带视频的一些较大网页时显示白屏的问题修复记录:
String mp4Path = "/m/video.htmlid=w003129iefx&hgptag=txvideo12&vuid24=R1SphDgpxeZ%2FR4p0L5%2Fleg%3D%3D&ptag=3_6.6.5.5533_qrcode&first=2&from=timeline";// String mp4Path = "/kgsong/gz1g862.html?albumid=4027723&frombaidu";WebSettings webSettings = webview.getSettings();webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); //设置缓存webSettings.setJavaScriptEnabled(true);//设置能够解析JavascriptwebSettings.setDomStorageEnabled(true); //设置适应Html5 重点是这个设置if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {webview.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); //兼容https和http的网络链接}webview.loadUrl(mp4Path);