Code example for DialogFragment

Methods: getDialog, onActivityCreated