I have a WebView with a WebViewClient with the onRecievedError method set.
But if I set my phone to Airplane mode and the page fails to loadthe above method isn't called, is there any to detect and deal with WebView being unable to load pages?
I have a WebView with a WebViewClient with the onRecievedError method set.
But if I set my phone to Airplane mode and the page fails to loadthe above method isn't called, is there any to detect and deal with WebView being unable to load pages?
But if I set my phone to Airplane mode and the page fails to loadthe above method isn't called
That method is for errors received from the Web server. In your case, there is no accessible Web server.
is there any to detect and deal with WebView being unable to load pages?
Not generically, AFAIK. You can use ConnectivityManager
to determine if you have an Internet connection, which would help in your airplane mode scenario.