Code example for DialogFragment

Methods: getDialogonDestroyView, getRetainInstance

0
 
	@Override 
	public void onDestroyView() { 
		// Work around bug: 
		// http://code.google.com/p/android/issues/detail?id=17423 
		Dialog dialog = getDialog();
 
		if ((dialog != null) && getRetainInstance()) {
			dialog.setDismissMessage(null);
		} 
 
		super.onDestroyView(); 
	} 
 
	public void setData(int customIcon, String title, String message,
			String positiveBtn, String neutralBtn, String negativeBtn,
			RMMFragInterface myInterface) {
		this.customIcon = customIcon;
		this.title = title;
		this.message = message;
Experience pair programming with AI  Get Codota for Java