web page not available error

后端 未结 1 1254
广开言路
广开言路 2021-01-28 20:16
private class HelloWebViewClient extends WebViewClient {
    @Override

    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        view.loadUrl(url)         


        
1条回答
  •  隐瞒了意图╮
    2021-01-28 21:01

    Do you have the permission android.permission.INTERNET enabled in AndroidManifest.xml? E.g.

    
    

    Regarding one of the comments above, I haven't heard of WebViews requiring the ACCESS_NETWORK_STATE permission, and have had them working without it, but perhaps the functionality is automatically used for something optional if available(?)

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