Code example for WebViewClient

Methods: onPageFinished

0
    public void onPageFinished(WebView view, String url) {
        // for measuring loading time 
        Log.d("DEBUG", url + " : " + String.valueOf(System.currentTimeMillis() - measureStartMillis));
        measureStartMillis = 0;
 
        webViewClient.onPageFinished(view, url);
    } 
 
    @Override 
    public void onLoadResource(WebView view, String url) {
        webViewClient.onLoadResource(view, url);
    } 
 
    @SuppressWarnings("deprecation") 
    @Override 
    public void onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg) {
        webViewClient.onTooManyRedirects(view, cancelMsg, continueMsg);
    } 
 
    @Override