android webview displaying blank page

后端 未结 14 806
借酒劲吻你
借酒劲吻你 2020-12-14 06:33

I have an android application that I am developing using the emulator running on android 2.3.3 with an embedded WebView in a framelayout nested in a linearlayout (vertical).

14条回答
  •  [愿得一人]
    2020-12-14 06:59

    instead of passing null, you should pass an empty String to it. ex: ""
    So you should call it like this:
    wview.loadDataWithBaseURL("", "

    Test

    ","text/html","utf-8","");

提交回复
热议问题