I was wondering if there was a way to detect blank webpages using the webview. Actually, this is a college app and so, it would not look appealing if the app loads a blank page and was thinking of using
WebView.loadURL("<html><body> <h1>Oops! We have an empty page here</h1></html>") when I encounter a blank page.
So is there a way to implement this?
Btw. this is a case when the loaded URL webpage is empty and not a rendering issue or whatever it is called!
Best How To :
there is two possible event:
1) page does not load.
2) page load but it is blank.
1) Attach a WebViewClient to your WebView, where you override
onReceivedError() to find out about error
2) Attach a WebViewClient to your WebView and in
you can check chid like this: