Code example for WebView

Methods: clearCachedestroy

0
    } 
 
    @Override 
    protected void onDestroy() { 
        super.onDestroy(); 
        Log.v(LOGTAG, "onDestroy, inst=" + Integer.toHexString(hashCode()));
        webView.clearCache(true);
        webView.destroy();
    } 
 
    private boolean isPageDone() { 
        synchronized (pageDoneLock) {
            return pageDone;
        } 
    } 
 
    private void setPageDone(boolean pageDone) {
        synchronized (pageDoneLock) {
            this.pageDone = pageDone;
            pageDoneLock.notifyAll();
        }