Code example for ProgressDialog

Methods: hide

0
            if(ind1<0 || ind2<0)
            { 
                wv.post(new Runnable() {
                    @Override 
                    public void run() { 
                        baconPDialog.hide();
                    } 
                }); 
                new AlertDialog.Builder(ContactForm.this).setTitle(R.string.contact_form_error)
                        .setMessage(R.string.contact_form_message).setNeutralButton(android.R.string.ok,
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog, int id) {
                                dialog.dismiss();
                            } 
                        }).show().setOnDismissListener( 
                        new DialogInterface.OnDismissListener() {
                            @Override 
                            public void onDismiss(DialogInterface dialogInterface) {
                                finish();
                            } 
                        }