Code example for JsPromptResult

Methods: cancel

0
							new DialogInterface.OnClickListener() {
								@Override 
								public void onClick(DialogInterface dialog,
										int which) {
									dialog.dismiss();
									result.cancel();
								} 
							}) 
					.setOnCancelListener( 
							new DialogInterface.OnCancelListener() {
								@Override 
								public void onCancel(DialogInterface dialog) {
									result.cancel();
								} 
							}).show(); 
			return true; 
		} 
 
		@Override 
		public void onConsoleMessage(String message, int lineNumber, String sourceId) {
			String tag = getString(R.string.app_name);