Code example for DialogFragment

Methods: onCreateDialog

	public Dialog onCreateDialog(Bundle savedInstanceState) {
		// The only reason you might override this method when using onCreateView() is 
		// to modify any dialog characteristics. For example, the dialog includes a 
		// title by default, but your custom layout might not need it. So here you can 
		// remove the dialog title, but you must call the superclass to get the Dialog. 
		Dialog dialog = super.onCreateDialog(savedInstanceState);
		return dialog;