web page not available error

后端 未结 1 1257
广开言路
广开言路 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.

    <uses-permission android:name="android.permission.INTERNET"/>
    

    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)
提交回复
热议问题