android webview displaying blank page

后端 未结 14 809
借酒劲吻你
借酒劲吻你 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

    use ip address instead of web url then override webclient using following ssl error handling method

    @Override
    public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
        handler.proceed(); // Ignore SSL certificate errors
    }
    
    0 讨论(0)
  • 2020-12-14 07:04

    change wrap_content to fill_parent in your webview layout. it worked for me

    0 讨论(0)
提交回复
热议问题