Code example for DialogFragment

Methods: getDialogonDestroyView, getRetainInstance

0
		return dialog;
	} 
 
	@Override 
	public void onDestroyView() { 
		if (getDialog() != null && getRetainInstance()) {
			getDialog().setDismissMessage(null);
		} 
		super.onDestroyView(); 
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java