Code example for WebView

Methods: getProgressstopLoading

0
            this.pageDone = pageDone;
            pageDoneLock.notifyAll();
        } 
    } 
 
    private void handleTimeout() { 
        int progress = webView.getProgress();
        webView.stopLoading();
        Log.v(LOGTAG, "Page timeout triggered, progress = " + progress);
        timeoutFlag = true;
        handler.postDelayed(pageDoneRunner, manualDelay);
    } 
 
    public boolean waitUntilDone() { 
        validateNotAppThread(); 
        synchronized (pageDoneLock) {
            while(!isPageDone()) { 
                try { 
                    pageDoneLock.wait();
                } catch (InterruptedException ie) {
                    //no-op