Code example for JsPromptResult

Methods: cancel

0
                    result.confirm(et.getText().toString());
                } 
            }).setNeutralButton("取消", new OnClickListener() {
                @Override 
                public void onClick(DialogInterface dialog, int which) {
                    result.cancel();
                } 
            }); 
 
            builder.setOnCancelListener(new OnCancelListener() {
                 
                @Override 
                public void onCancel(DialogInterface dialog) {
                    result.cancel();
                } 
            }); 
             
            AlertDialog dialog = builder.create();
            dialog.show();
            return true; 
Stop searching for code, let great code find you!  Add Codota to your java IDE