Opening new android activity with a webview shows a blank (white) screen instead of the html content

前端 未结 11 1477
野性不改
野性不改 2020-12-29 03:29

I have been researching for 2 days and I haven\'t found a similar problem anywhere on the internet!

From the main activity, I\'m trying to open a new activity contai

11条回答
  •  春和景丽
    2020-12-29 04:19

    meet same problem.

    I tried the solutions in link. It failed all the time.

    My situation is same to it. There is H5 video in webview,It does well first time and fail then. when It fails,I found some message from log

    1. onProgressChanged and not to 100% whitout more progress
    2. chromium: [ERROR:in_process_view_renderer.cc(193)] Failed to request GL process. Deadlock likely: 0

    when I invoke method

    mWebView.loadUrl(url)//webview's height is 0px now
    //some code change webView's height here
    

    My solutions is set webview height some dp or match_parent default. It works well!

提交回复
热议问题