How to tell if a WebView request succeeded?
<p>I have a WebView that initially isn't visible to the user. When the page has finished loading I'm going to show it.</p>

<p>The problem is that <code>WebViewClient.onPageFinished()</code> gets called both when the request succeeds and when it fails. It seems awkward to add an <code>isPageLoadFailed</code> field and set that to <code>true</code> within <code>onReceivedError()</code> and then check that field within <code>onPageFinished()</code>.</p>

<p>Is there a simpler way to tell whether the page load actually succeeded?</p>
