Prevent WebView from displaying "web page not available"
<p>I have an app that makes extensive use of a WebView. When the user of this app does not have Internet connection, a page saying "web page not available" and various other text appears. Is there a way to not show this generic text in my WebView? I would like to provide my own error handling. </p>

<pre><code>private final Activity activity = this;

private class MyWebViewClient extends WebViewClient
 public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
  // I need to do something like this:
  activity.webView.wipeOutThePage();
  activity.myCustomErrorHandling();
  Toast.makeText(activity, description, Toast.LENGTH_LONG).show();
 }
}
</code></pre>

<p>I found out <a href="http://developer.android.com/reference/android/webkit/WebView.html#clearView%28%29" rel="nofollow">WebView->clearView</a> doesn't actually clear the view.</p>
