Android Webview : Onreceivedhttperror Statuscode == 404
Here is the code: @Override @SuppressWarnings('deprecation') public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { *
Solution 1:
You may be seeing errors for specific items on the website instead of the whole webpage itself. From the docs, you can refer to the description of the methods as follows:
onReceivedError (API 23)
... Note that unlike the deprecated version of the callback, the new version will be called for any resource (iframe, image, etc), not just for the main page. Thus, it is recommended to perform minimum required work in this callback.
onReceivedHttpError
... This callback will be called for any resource (iframe, image, etc), not just for the main page. Thus, it is recommended to perform minimum required work in this callback. ...
Post a Comment for "Android Webview : Onreceivedhttperror Statuscode == 404"