Code example for ProgressDialog

Methods: hide, isShowing

0
            if(!url.startsWith("http://wufoo.com/"))
                view.loadUrl("javascript:window.HTMLOUT.CustomCSSApplier(document.getElementsByTagName('html')[0].innerHTML);");
            else 
            { 
                view.setVisibility(View.VISIBLE);
                if(baconPDialog.isShowing())
                    baconPDialog.hide();
            } 
        } 
    } 
 
    /** A class to restore the draft stored in the preference, if it exists. */ 
    class RestoreDraftClient extends MyWebViewClient 
    { 
        @Override 
        public void onPageFinished(WebView view, String url)
        { 
            String TAG = StaticBlob.TAG();
            super.onPageFinished(view, url);
            if(!url.startsWith("http://wufoo.com/")) //In this case the super's method is going to re-load the page to trigger the JS handler
                return;                             //so we don't need to do anything.