I am creating application that use WebView to access a online website. I am stuck where I have to add code to check availability of page.
public class SpartanWeb
I added onReceivedError
to mWebView.setWebViewClient(new WebViewClient
so now it's working. Thanks for tips.
mWebView.setWebViewClient(new WebViewClient() {
@Override public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
mWebView.loadUrl("file:///android_asset/error.html");
} });