我有一个广泛使用WebView的应用程序。当此应用程序的用户没有Internet连接时,会出现一个页面,显示“网页不可用”和各种其他文本。有没有办法在我的WebView中不显示这个通用文本?我想提供我自己的错误处理。private final Activity activity = this;
public void onReceivedError</em
我正在使用带有自定义错误页面的onReceivedError,以显示在WebView中互联网不可用的时间。下面是我使用的代码。它不起作用。它只是在互联网不可用时显示网页不可用页面。不管怎样,logcat向我显示了这个错误:
I/chromium﹕ [INFO:CONSOLE(0)] "Not allowed to load local resource: file:///android_asset/webkit/<em