WebViewClient.onReceivedError
was deprecated, now I have to use onReceivedHttpError
to handle the webview errors, however this method receives the error from any resource, which is not what I desire.
I wish only to detect the main URL failing.
How should I detect the error if I am using API 10?
I tried using the request.getUrl()
method but it is only compatible with API 23.