Code example for DialogInterface

Methods: dismiss

0
		}); 
		return this;
	} 
 
	protected void onCancel(DialogInterface dialog) {
		dialog.dismiss();
		onCancelListener.onCancel(this);
	} 
 
	/** 
	 * @return Title for the negative button. 
	 */ 
	protected String getNegativeTitle() {
		return activity.getString(android.R.string.no);
	} 
 
	/** 
	 * Sets listener for dialog to be declined by pushing on negative button. 
	 *  
	 * @param listener 
Experience pair programming with AI  Get Codota for Java