Code example for ProgressDialog

Methods: dismiss, isShowing

0
    public void dismiss() { 
        if (webView != null) {
            webView.stopLoading();
        } 
        if (!isDetached) {
            if (spinner.isShowing()) {
                spinner.dismiss();
            } 
            super.dismiss(); 
        } 
    } 
 
    @Override 
    public void onDetachedFromWindow() { 
        isDetached = true;
        super.onDetachedFromWindow(); 
    } 
 
    @Override 
    public void onAttachedToWindow() { 
        isDetached = false;