net::ERR_ACCESS_DENIED Android error while opening WebPage in Android Activity

后端 未结 7 699
青春惊慌失措
青春惊慌失措 2021-01-12 08:38

Android WebPage showing net::ERR_ACCESS_DENIED while opening Android activity Embedded with with WebPage Tag

I tried to provide permission in Android Manifest.

相关标签:
7条回答
  • 2021-01-12 09:25

    All you need, clear the data, un-install the app an re-installed it. After that, put this code to <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> and put this code to webview class

    webSettings.setJavaScriptEnabled(true);
    
    webSettings.setAllowContentAccess(true);
    webSettings.setAppCacheEnabled(true);
    webSettings.setDomStorageEnabled(true);
    webSettings.setUseWideViewPort(true);
    
    0 讨论(0)
提交回复
热议问题