Code example for JsPromptResult

Methods: cancel

0
					} 
				}) 
				.setNeutralButton("取消", new OnClickListener() {
					@Override 
					public void onClick(DialogInterface dialog, int which) {
						result.cancel();
					} 
				}); 
 
				builder.setOnKeyListener(new OnKeyListener() {
					@Override 
					public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
						return true; 
					} 
				}); 
				AlertDialog dialog = builder.create();
				dialog.show();
				return true; 
			} 
		});