I’m developing a browser-like application in android using WebView.
While loading the URL, I want to display a specific page/message/toast whenever server returns 404 response. I tried using shouldOverrideUrlLoading, but it can filter URLs based on URL string only. Is there any good way to get the server’s response code within WebViewClient or WebChromeClient (without loading the URL twice)?
I’m developing a browser-like application in android using WebView. While loading the URL, I
Share
override the method
onReceivedErrorofWebViewclient