我正在尝试以下示例,但使用外部URL: 使用WebViews
该示例显示如何从assets文件夹加载HTML文件(file:// url)并将其显示在WebView中.
file:// url
但是当我尝试使用外部网址时(例如http://google.com))时,我总是收到"网站不可用"错误.Android的内置浏览器可以访问所有外部URL.
我怀疑它与权限有关,但无法确认.
android http webview
android ×1
http ×1
webview ×1