Code example for Dialog

Methods: dismiss

0
            public void onClick(View v) {
                if (editor != null) {
                    editor.putBoolean("dontshowagain", true);
                    editor.commit();
                } 
                dialog.dismiss();
            } 
        }); 
        ll.addView(b3);
 
        dialog.setContentView(ll);        
        dialog.show();        
    } 
} 
Experience pair programming with AI  Get Codota for Java