我有一个WebView。我想要加载一个名为helloworld.html的本地HTML文件。它位于我的drawable-hdpi文件夹中。
以下是我的代码:
webView = (WebView) findViewById(R.id.webView);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("file:///android_asset/helloworld.html");
我遇到了一个浏览器错误:
The webpage at file:///android_asset/helloworld.html could not be loaded as the file requested was not found. /android_asset/helloworld.html (no such file or directory)
我该如何解决这个问题?