How to modify connection error message in android application?
<p>In my android application I want to substitute standard error message "NOT FOUND The requested URL was not found on this server" with a custom one. I want to do it for connection failures, wrong URL and other errors.
Overriding  <code>onReceivedError</code> method in <code>onCreate</code> suggested in some postings did not help since this method does not seem to be called.</p>

<pre><code>import android.app.Activity;

public class MyActivity extends Activity 
{

        mWebView.setWebViewClient(new WebViewClient() {
            @Override
            public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
                Log.i("WEB_VIEW_TEST", "error code:" + errorCode);
                super.onReceivedError(view, errorCode, description, failingUrl);
                //TO DO - do something else in here if the site is down
                }
              });
</code></pre>
